|  | ExtensionsIsNotNullT, TResult Method (T, FuncT, TResult) | 
 
            Checks if the value is null. If not, it will invoke func
 
    Namespace: 
   Cauldron
    Assembly:
   Cauldron (in Cauldron.dll) Version: 3.2.0.2
 Syntax
Syntaxpublic static TResult IsNotNull<T, TResult>(
	this T value,
	Func<T, TResult> func
)
where T : class
<ExtensionAttribute>
Public Shared Function IsNotNull(Of T As Class, TResult) ( 
	value As T,
	func As Func(Of T, TResult)
) As TResult
public:
[ExtensionAttribute]
generic<typename T, typename TResult>
where T : ref class
static TResult IsNotNull(
	T value, 
	Func<T, TResult>^ func
)
Parameters
- value
- Type: T
 The value to check
- func
- Type: SystemFuncT, TResult
 The func to invoke if value is not null
Type Parameters
- T
- The type of the value
- TResult
- The return type
Return Value
Type: 
TResultThe result of 
valueUsage 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
See Also