Foley .NET Utilities Class Library

HashSet.Add Method (Object)

Adds an Object into the HashSet.

[Visual Basic]
Overrides Overloads Public Function Add( _
   ByVal value As Object _
) As Boolean Implements _
   ISet.Add
[C#]
public override bool Add(
   object value
);

Parameters

value
The Object to be added into the HashSet

Return Value

true if the HashSet is modified; otherwise false.

Implements

ISet.Add

Exceptions

Exception TypeCondition
System.ArgumentNullException The value is a null reference (Nothing in Visual Basic).

See Also

HashSet Class | HashSet Members | Foley.Utilities.Collections Namespace | HashSet.Add Overload List