Binary Implicit Conversion (Byte[] to Binary)

 

Enables arrays of bytes to be implicitly coerced to the Binary type in a programming language.

Namespace:   System.Data.Linq
Assembly:  System.Data.Linq (in System.Data.Linq.dll)

public static implicit operator Binary (
	byte[] value
)

Parameters

value
Type: System.Byte[]

The array of bytes to convert into an instance of the Binary type.

Return Value

Type: System.Data.Linq.Binary

A Binary class containing the coerced value.

When null is passed to this operator instead of the required array of bytes, a System.ArgumentNullException exception is thrown. Do not rely on this behavior because it may change in the future.

.NET Framework
Available since 3.5
Windows Phone Silverlight
Available since 7.1
Return to top
Show: