Delegate TryFunc<T, TResult>
Delegate that has one parameter and returns an out value of the type specified by the TResult
parameter.
This method can fail so the boolean return type indicate the state succeeded or not of the method.
Namespace: QuikGraph
Assembly: QuikGraph.dll
Syntax
public delegate bool TryFunc<in T, TResult>(T arg, out TResult result);
Parameters
Type | Name | Description |
---|---|---|
T | arg | The parameter of the method that this delegate encapsulates. |
TResult | result | The result of the method if it succeed. |
Returns
Type | Description |
---|---|
System.Boolean | Boolean indicating if the method succeeded or not. |
Type Parameters
Name | Description |
---|---|
T | The type of the parameter of the method that this delegate encapsulates. |
TResult | The type of the return value of the method that this delegate encapsulates. |