public static unsafe void RequiresNotNull(ExceptionArgument argument, void *ptr) { if (ptr == null) { BufferPrimitivesThrowHelper.ThrowArgumentNullException(argument); } }
public static void RequiresNotNull <T>(ExceptionArgument argument, T obj) where T : class { if (obj == null) { BufferPrimitivesThrowHelper.ThrowArgumentNullException(argument); } }