/// <summary> /// Evaluates bitwise not (~) for the given type. /// </summary> /// <exception cref = "InvalidOperationException">The generic type does not provide this operator.</exception> public static T Not <T>(T value) { return(BitwiseOperator <T> .Not(value)); }
/// <summary> /// Evaluates bitwise inclusive or (|) for the given type. /// </summary> /// <exception cref = "InvalidOperationException">The generic type does not provide this operator.</exception> public static T Or <T>(T value1, T value2) { return(BitwiseOperator <T> .Or(value1, value2)); }
/// <summary> /// Evaluates bitwise exclusive or (^) for the given type. /// </summary> /// <exception cref = "InvalidOperationException">The generic type does not provide this operator.</exception> public static T ExclusiveOr <T>(T value1, T value2) { return(BitwiseOperator <T> .ExclusiveOr(value1, value2)); }
/// <summary> /// Evaluates bitwise and (&) for the given type. /// </summary> /// <exception cref = "InvalidOperationException">The generic type does not provide this operator.</exception> public static T And <T>(T value1, T value2) { return(BitwiseOperator <T> .And(value1, value2)); }