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