ExtensionMethodsNullCheckT Method |
Namespace:
Arsenal.ImageMounter.Extensions
Assembly:
Arsenal.ImageMounter (in Arsenal.ImageMounter.dll) Version: 1.0.0.0 (3.4.140.0)
Syntax public static T NullCheck<T>(
this T instance,
string param
)
where T : class
<ExtensionAttribute>
Public Shared Function NullCheck(Of T As Class) (
instance As T,
param As String
) As T
public:
[ExtensionAttribute]
generic<typename T>
where T : ref class
static T NullCheck(
T instance,
String^ param
)
[<ExtensionAttribute>]
static member NullCheck :
instance : 'T *
param : string -> 'T when 'T : not struct
Parameters
- instance
- Type: T
- param
- Type: SystemString
Type Parameters
- T
Return Value
Type:
TUsage 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