ComponentFunctionType Class
A function type of the component model: named parameters, an optional result, and whether it is asynchronous.
public sealed class ComponentFunctionType : ComponentType, IEquatable<ComponentFunctionType>- Inheritance
ComponentTypeComponentFunctionType- Implements
Constructors
| Name | Description |
|---|---|
| ComponentFunctionType(IEnumerable<ComponentField>, ComponentValueType?, bool) | Initializes a new instance of the ComponentFunctionType class. |
ComponentFunctionType(IEnumerable<ComponentField>, ComponentValueType?, bool)
ComponentTypes.csInitializes a new instance of the ComponentFunctionType class.
public ComponentFunctionType(IEnumerable<ComponentField> parameters, ComponentValueType? result, bool isAsync = false)Parameters
parametersIEnumerable<ComponentField>- The parameters.
resultComponentValueType?- The type of the result, or null.
isAsyncbool- Whether the function is asynchronous (
async).
Properties
| Name | Description |
|---|---|
| IsAsync | Gets whether the function is asynchronous (async). |
| Parameters | Gets the parameters. |
| Result | Gets the type of the result, or null. |
IsAsync
ComponentTypes.csParameters
ComponentTypes.csResult
ComponentTypes.csMethods
| Name | Description |
|---|---|
| Equals(ComponentFunctionType?) | Indicates whether the current object is equal to another object of the same type. |
| Equals(object?) | Determines whether the specified object is equal to the current object. |
| GetHashCode() | Serves as the default hash function. |
| ToString() | Returns the type in the text format. |
Equals overloads
Equals(ComponentFunctionType?)
ComponentTypes.csIndicates whether the current object is equal to another object of the same type.
public bool Equals(ComponentFunctionType? other)Parameters
otherComponentFunctionType?- An object to compare with this object.
Returns
bool true if the current object is equal to the other parameter; otherwise, false.