Table of Contents

Operator implicit operator

Namespace
WhalesSecret.TradeScriptLib.Entities
Assembly
WhalesSecret.TradeScriptLib.dll

implicit operator SensitiveByteArray(byte[])

Allows conversion from byte array to SensitiveByteArray. This should be used only if a third party API returns sensitive content in byte array.

public static implicit operator SensitiveByteArray(byte[] value)

Parameters

value byte[]

Byte array to convert from.

Returns

SensitiveByteArray

implicit operator SensitiveByteArray(ReadOnlySpan<byte>)

Allows conversion from read-only span to SensitiveByteArray. This should be used only if a third party API returns sensitive content in byte array.

public static implicit operator SensitiveByteArray(ReadOnlySpan<byte> value)

Parameters

value ReadOnlySpan<byte>

Read-only span to convert from.

Returns

SensitiveByteArray

implicit operator byte[](SensitiveByteArray)

Allows conversion from SensitiveByteArray to byte array. This should be used only if a third party API accepts byte array and we have it as SensitiveByteArray.

public static implicit operator byte[](SensitiveByteArray value)

Parameters

value SensitiveByteArray

Sensitive byte array to convert from.

Returns

byte[]