 | throwIfThrowIfNullT Method |
Namespace:
WhetStone.SystemExtensions
Assembly:
WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntaxpublic static void ThrowIfNull<T>(
this T this,
string paramName = "parameter"
)
Parameters
- this
- Type: T
The object to check. - paramName (Optional)
- Type: SystemString
The string of the exception to throw. for generic parameter name.
Type Parameters
- T
- The type of the object.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also