public static unsafe void RequiresSameReference(void *ptr0, void *ptr1) { if (ptr0 != ptr1) { BufferPrimitivesThrowHelper.ThrowArgumentException(ExceptionArgument.pointer); } }
internal static unsafe void RequiresOneNotNull <T>(T[] array, void *pointer) { if (array == null && pointer == null) { BufferPrimitivesThrowHelper.ThrowArgumentException(); } }
public static void Requires(bool condition) { if (!condition) { BufferPrimitivesThrowHelper.ThrowArgumentException(); } }