Class Function<TInputArgumentType, TOutputType>
Inheritance
System.Object
Function<TInputArgumentType, TOutputType>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: SpiceSharpParser.Common.Evaluation
Assembly: SpiceSharpParser.dll
Syntax
public abstract class Function<TInputArgumentType, TOutputType> : IFunction<TInputArgumentType, TOutputType>, IFunction
Type Parameters
| Name | Description |
|---|---|
| TInputArgumentType | |
| TOutputType |
Properties
| Improve this Doc View SourceArgumentsCount
Gets or sets arguments count.
Declaration
public int ArgumentsCount { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Name
Gets or sets the name of function.
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
| Improve this Doc View SourceLogic(String, TInputArgumentType[], EvaluationContext)
Computes the value of the function for given arguments.
Declaration
public abstract TOutputType Logic(string image, TInputArgumentType[] args, EvaluationContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | image | |
| TInputArgumentType[] | args | |
| EvaluationContext | context |
Returns
| Type | Description |
|---|---|
| TOutputType |