Lines Matching defs:value
48 /// Throws an ArgumentNullException if the given value is null, otherwise
49 /// return the value to the caller.
51 public static T CheckNotNull<T>(T value, string name) where T : class
53 if (value == null)
57 return value;
61 /// Throws an ArgumentNullException if the given value is null, otherwise
62 /// return the value to the caller.
67 /// with a value type - but it gets in the way if either you want to use it with a nullable
68 /// value type, or you want to use it with an unconstrained type parameter.
70 internal static T CheckNotNullUnconstrained<T>(T value, string name)
72 if (value == null)
76 return value;