Guard.IsBitwiseEqualTo<T>(T, T, String) Method

Definition

Asserts that the input value must be a bitwise match with a specified value.

public static void IsBitwiseEqualTo<T> (T value, T target, string name) where T : struct;
static member IsBitwiseEqualTo : 'T * 'T * string -> unit (requires 'T : struct)
Public Shared Sub IsBitwiseEqualTo(Of T As Structure) (value As T, target As T, name As String)

Type Parameters

T

The type of input values to compare.

Parameters

value
T

The input T value to test.

target
T

The target T value to test for.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is not a bitwise match for target.

Applies to