OneOf-2.Match
OneOf<T1,T2>.Match<TResult> method
Executes one of the provided functions based on the underlying type of the value.
public TResult Match<TResult>(Func<T1, TResult> func1, Func<T2, TResult> func2)
Parameter | Description |
---|---|
TResult | The return type of the functions. |
func1 | The function to execute if the value is of type T1. |
func2 | The function to execute if the value is of type T2. |
Return Value
The result of the executed function.
See Also
- class OneOf<T1,T2>
- namespace Aspose.Svg.Builder
- assembly Aspose.SVG