public CKR C_EX_SetLicense(NativeULong session, NativeULong licenseNum, byte[] license) { if (_disposed) { throw new ObjectDisposedException(GetType().FullName); } NativeULong licenseLength = 0; if (license != null) { licenseLength = (NativeULong)(license.Length); } NativeULong rv = _rutokenDelegates.C_EX_SetLicense(session, licenseNum, license, licenseLength); return((CKR)rv); }