Method OffsetOf
OffsetOf(MathArgument, int)
The offset at which an element of a slot starts.
public static int OffsetOf(MathArgument slot, int elementIndex)
Parameters
slotMathArgumentThe slot.
elementIndexintThe element's index, or the element count for the slot's end.
Returns
- int
The offset.
Exceptions
- ArgumentNullException
slotis null.- ArgumentOutOfRangeException
elementIndexis outside 0 to the element count.