BinaryData.Implicit Operator

Definition

Overloads

Implicit(BinaryData to ReadOnlyMemory<Byte>)

Defines an implicit conversion from a BinaryData to a ReadOnlyMemory<T>.

Implicit(BinaryData to ReadOnlySpan<Byte>)

Defines an implicit conversion from a BinaryData to a ReadOnlySpan<T>.

Implicit(BinaryData to ReadOnlyMemory<Byte>)

Source:
BinaryData.cs
Source:
BinaryData.cs
Source:
BinaryData.cs

Defines an implicit conversion from a BinaryData to a ReadOnlyMemory<T>.

public static implicit operator ReadOnlyMemory<byte> (BinaryData? data);

Parameters

data
BinaryData

The value to be converted.

Returns

A read-only memory of bytes representing the implicitly converted BinaryData.

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)

Implicit(BinaryData to ReadOnlySpan<Byte>)

Source:
BinaryData.cs
Source:
BinaryData.cs
Source:
BinaryData.cs

Defines an implicit conversion from a BinaryData to a ReadOnlySpan<T>.

public static implicit operator ReadOnlySpan<byte> (BinaryData? data);

Parameters

data
BinaryData

The value to be converted.

Returns

A read-only span of bytes representing the implicitly converted BinaryData.

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)