CollectionUtilsAddAll Method |
Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
14c (14.1.1.0)
F23534-02
Adds all of the elements of the "source" collection to the
"target" collection.
Namespace:
Tangosol.Util
Assembly:
Coherence (in Coherence.dll) Version: 14.1.1.14 (14.1.1.14)
Syntaxpublic static bool AddAll(
ICollection target,
ICollection source
)
Parameters
- target
- Type: System.CollectionsICollection
Collection where the new elements will be added.
- source
- Type: System.CollectionsICollection
Collection whose elements will be added.
Return Value
Type:
Booleantrue if at least one element was added,
false
otherwise.
ExceptionsException | Condition |
---|
NotSupportedException |
If target is a fixed-size collection, or if
its type is an unknown collection type.
|
Remarks
This method allows us to add elements to any collection type from
the
System.Collections namespace in a uniform
manner, thus hiding differences in the API between
IList implementations and classes such as
Queue and
Stack.
See Also