BinaryData.Implicit Operator
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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>. |
- Source:
- BinaryData.cs
- Source:
- BinaryData.cs
- Source:
- BinaryData.cs
Defines an implicit conversion from a BinaryData to a ReadOnlyMemory<T>.
public:
static operator ReadOnlyMemory<System::Byte>(BinaryData ^ data);
public static implicit operator ReadOnlyMemory<byte> (BinaryData? data);
static member op_Implicit : BinaryData -> ReadOnlyMemory<byte>
Public Shared Widening Operator CType (data As BinaryData) As ReadOnlyMemory(Of Byte)
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) |
- Source:
- BinaryData.cs
- Source:
- BinaryData.cs
- Source:
- BinaryData.cs
Defines an implicit conversion from a BinaryData to a ReadOnlySpan<T>.
public:
static operator ReadOnlySpan<System::Byte>(BinaryData ^ data);
public static implicit operator ReadOnlySpan<byte> (BinaryData? data);
static member op_Implicit : BinaryData -> ReadOnlySpan<byte>
Public Shared Widening Operator CType (data As BinaryData) As ReadOnlySpan(Of Byte)
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) |
.NET feedback
.NET is an open source project. Select a link to provide feedback: