[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
public sealed class Arithmetic.FunctionAttribute : Attribute
Any function method inside an ArithmeticRepository must be decorated with this attribute to identify it as such. The method signature must follow: TResult Method(TA a, TB b)
Constructors
FunctionAttribute
#Create a new binary function attribute. The method signature for this attribute must follow: TResult Method(TA a, TB b)
Parameters:
| fn (Arithmetic.Binary) |
FunctionAttribute
#Create a new ternary function attribute. The method signature for this attribute must follow: TResult Method(TA a, TB b, TC c)
Parameters:
| fn (Arithmetic.Ternary) |
FunctionAttribute
#Create a new unary function attribute. The method signature for this attribute must follow: TResult Method(TA a)
Parameters:
| fn (Arithmetic.Unary) |
Properties
Binary
#Gets the binary function specified by this attribute. This property only has a meaningful value if the Arity equals 2.
Ternary
#Gets the ternary function specified by this attribute. This property only has a meaningful value if the Arity equals 3.