|
|
@ -352,7 +352,7 @@ public static class Check |
|
|
/// <exception cref="ArgumentException"></exception>
|
|
|
/// <exception cref="ArgumentException"></exception>
|
|
|
public static T NotDefaultorNull<T>( |
|
|
public static T NotDefaultorNull<T>( |
|
|
Nullable<T> value, |
|
|
Nullable<T> value, |
|
|
string parameterName) |
|
|
[InvokerParameterName][NotNull] string parameterName) |
|
|
where T : struct |
|
|
where T : struct |
|
|
{ |
|
|
{ |
|
|
if (value.Equals(default(T))) |
|
|
if (value.Equals(default(T))) |
|
|
|