[This is preliminary documentation and is subject to change.]
Finds the slot containing a particular resource.
Declaration Syntax
C# |
public int SlotOf( T resource )
Parameters
- resource (T)
- The resource to look for.
Return Value
The slot containing the resource, or -1 if the resource is not
contained in the set.
Remarks
This operation takes a time proportional to the capacity of the
set.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown if the supplied resource is
null. |