HashSetExtensionsAddNewOrOldRangeT Method |
Add a range of values to a hashset. It is OK if the values are already of the hashset.
Namespace: Bio.UtilAssembly: Bio.Core (in Bio.Core.dll) Version: 2.0.0.1 (2.0.0.1)
Syntax public static void AddNewOrOldRange<T>(
this HashSet<T> hashSet,
IEnumerable<T> sequence
)
<ExtensionAttribute>
Public Shared Sub AddNewOrOldRange(Of T) (
hashSet As HashSet(Of T),
sequence As IEnumerable(Of T)
)
public:
[ExtensionAttribute]
generic<typename T>
static void AddNewOrOldRange(
HashSet<T>^ hashSet,
IEnumerable<T>^ sequence
)
[<ExtensionAttribute>]
static member AddNewOrOldRange :
hashSet : HashSet<'T> *
sequence : IEnumerable<'T> -> unit
Parameters
- hashSet
- Type: System.Collections.GenericHashSetT
The hashset to add values to - sequence
- Type: System.Collections.GenericIEnumerableT
A sequence of values to add to the hashset.
Type Parameters
- T
- The type of the hashset's elements
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
HashSetT. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also