Method GetOperator
GetOperator<T>(Artifact)
Utility method to get operators of a certain type from an artifact.
Declaration
public static T GetOperator<T>(this Artifact artifact) where T : class, IOperator
Parameters
Type | Name | Description |
---|---|---|
Artifact | artifact | Artifact to get operators from. |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T | Type of operators to get. |
GetOperator<T>(IEnumerable<IOperator>)
Utility method to get operators of a certain type from a list of operators.
Declaration
public static T GetOperator<T>(this IEnumerable<IOperator> operators) where T : class, IOperator
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<IOperator> | operators | The operators to filter. |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T | Type of operators to get. |