[This is preliminary documentation and is subject to change.]
Obtains the T resource at a particular slot in the set.
Declaration Syntax
C# |
public T this[ int slot ] { get; }
Parameters
- slot (Int32)
- The slot containing the desired resource.
Return Value
The found resource.
Remarks
If the given slot does not contain a resource, an exception is
thrown. This is a fast operation taking constant time.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | Thrown if there was no resource
in the given slot. |