Persistate API documentation
SlotOf Method (resource)
NamespacesPersistate.UtilResourceSlotSet<(Of <(<'T>)>)>SlotOf(T)

[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
ExceptionCondition
ArgumentNullExceptionThrown if the supplied resource is null.

Assembly: Persistate.Util (Module: Persistate.Util) Version: 0.6.1.20 (0.6.1.20)