Method | Description | |
---|---|---|
CheckNotNull ( value, string name ) : T |
Throws an ArgumentNullException if the given value is null, otherwise return the value to the caller.
|
Method | Description | |
---|---|---|
CheckNotNullUnconstrained ( value, string name ) : T |
Throws an ArgumentNullException if the given value is null, otherwise return the value to the caller. This is equivalent to CheckNotNull{T}(T, string) but without the type parameter constraint. In most cases, the constraint is useful to prevent you from calling CheckNotNull with a value type - but it gets in the way if either you want to use it with a nullable value type, or you want to use it with an unconstrained type parameter. |
public static CheckNotNull ( value, string name ) : T | ||
name | string | |
return | T |