Arithmetic.OperatorAttribute

AttributeReferences
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] public sealed class Arithmetic.OperatorAttribute : Attribute
Any operator 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

OperatorAttribute

#
public OperatorAttribute(Operation op)
Create a new operator attribute.
op (Arithmetic.Operation)

Properties

Operator

#
public Arithmetic.Operation Operator { get; }
Gets the operator specified by this attribute.