Class WrapBinary<TRealTop, TRealBottom, TRealOut>
Wrap a C# function that takes two arguments and returns one value as a Fluency function that:
- If no arguments given, read something from the top and the bottom and do the operation on them.
- If one top argument given, read something from the bottom and do the operation with that and the argument.
- If one bottom argument given, read something from the top and do the operation with that and the argument.
- This is how Add, Mult, Equals, LessThan, GreaterThan, And, Or, AddDouble, DivDouble, and Concat are implemented.
Inheritance
System.Object
WrapBinary<TRealTop, TRealBottom, TRealOut>
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: Fluency.Execution.Functions.BuiltIn
Assembly: Execution.dll
Syntax
public class WrapBinary<TRealTop, TRealBottom, TRealOut> : ITopIn, IBottomIn, ITopOut, IFunction
Type Parameters
| Name | Description |
|---|---|
| TRealTop | |
| TRealBottom | |
| TRealOut |
Constructors
| Improve this Doc View SourceWrapBinary(Func<TRealTop, TRealBottom, TRealOut>, FluencyType, FluencyType, String, Value[], Value[])
Declaration
public WrapBinary(Func<TRealTop, TRealBottom, TRealOut> function, FluencyType argType, FluencyType returnType, string name, Value[] topArguments, Value[] bottomArguments = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Func<TRealTop, TRealBottom, TRealOut> | function | |
| FluencyType | argType | |
| FluencyType | returnType | |
| System.String | name | |
| Value[] | topArguments | |
| Value[] | bottomArguments |
Properties
| Improve this Doc View SourceBottomInput
Declaration
public GetNext BottomInput { set; }
Property Value
| Type | Description |
|---|---|
| GetNext |
Name
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
TopInput
Declaration
public GetNext TopInput { set; }
Property Value
| Type | Description |
|---|---|
| GetNext |
Methods
| Improve this Doc View SourceTop()
Declaration
public Value Top()
Returns
| Type | Description |
|---|---|
| Value |