System::ObjectExt::Coalesce method
Contents
[
Hide
]ObjectExt::Coalesce(System::Nullable<T0>, T1) method
Implementation of ‘??’ operator translation for nullable types.
template<typename T0,typename T1> static T0 System::ObjectExt::Coalesce(System::Nullable<T0> value, T1 func)
Parameter | Description |
---|---|
T0 | LHS value type. |
T1 | Type of lambda encapsulating RHS expression. |
Parameter | Type | Description |
---|---|---|
value | System::Nullable<T0> | LHS value. |
func | T1 | RHS expression. |
ReturnValue
If LHS value is not null, returns LHS, otherwise calculates RHS expression and returns result.
See Also
- Class Nullable
- Class ObjectExt
- Namespace System
- Library Aspose.TeX for C++
ObjectExt::Coalesce(T0, T1) method
Implementation of ‘??’ operator translation for non-nullable types.
template<typename T0,typename T1> static auto System::ObjectExt::Coalesce(T0 value, T1 func)
Parameter | Description |
---|---|
T0 | LHS value type. |
T1 | Type of lambda encapsulating RHS expression. |
Parameter | Type | Description |
---|---|---|
value | T0 | LHS value. |
func | T1 | RHS expression. |
ReturnValue
If LHS value is not null, returns LHS, otherwise calculates RHS expression and returns result.
See Also
- Class ObjectExt
- Namespace System
- Library Aspose.TeX for C++