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