System::SafeInvoke method
System::SafeInvoke method
Implementation of ‘?.’ operator translation.
template<typename T0,typename T1> static auto System::SafeInvoke(T0 expr, T1 func)
Parameter | Description |
---|---|
T0 | expression type. |
T1 | Type of lambda encapsulating ‘WhenTrue’ expression. |
Parameter | Type | Description |
---|---|---|
expr | T0 | expression value. |
func | T1 | ‘WhenTrue’ expression bound to functor. |
ReturnValue
If expr value is not null, returns func called with its value as first argument, otherwise returns null.
See Also
- Namespace System
- Library Aspose.PDF for C++