| ExtensionsIsNotNullT Method (T, ActionT) |
Checks if the value is null. If not, it will invoke action
Namespace:
Cauldron
Assembly:
Cauldron (in Cauldron.dll) Version: 3.2.0.1 (3.2.0.1)
Syntax public static T IsNotNull<T>(
this T value,
Action<T> action
)
where T : class
Parameters
- value
- Type: T
The value to check - action
- Type: SystemActionT
The action to invoke if value is not null
Type Parameters
- T
- The type of the value
Return Value
Type:
TThe instance of the value
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