Guard.IsBitwiseEqualTo<T>(T, T, String) Method
Definition
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.
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
.