Explicit Operator
Explicit(Byte[] to SlotAccessCode)
Explicit operator to allow a byte array to be used as a parameter for methods expecting a SlotAccessCode instance.
C#
public static explicit operator SlotAccessCode(byte[] bytes)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | bytes | The bytes to use to construct the SlotAccessCode. |
Returns
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown if the length exceeds MaxAccessCodeLength |