Show / Hide Table of Contents

explicit operator Operator

explicit operator SlotAccessCode(byte[])

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
byte[] bytes

The bytes to use to construct the SlotAccessCode.

Returns

SlotAccessCode

Exceptions

Type Condition
ArgumentException

Thrown if the length exceeds MaxAccessCodeLength

In this article
Back to top Generated by DocFX