Method Create
Create(DiscreteField)
Creates a DiscreteFieldFunction with a predefined result.
Declaration
public static DiscreteFieldFunction Create(DiscreteField result)
Parameters
| Type | Name | Description |
|---|---|---|
| DiscreteField | result | The predefined function result. |
Returns
| Type | Description |
|---|---|
| DiscreteFieldFunction |
Remarks
Enables a DiscreteField to be used in contexts that expect a DiscreteFieldFunction by setting the result of the function explicitly.
Call EvaluateAsync(CancellationToken) to return the given result.
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET | 300 |
| .NET Windows | 300 |
| .NET Android | 300 |
| .NET iOS | 300 |