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

#
Create a new operator attribute.
public OperatorAttribute()

Properties

Operator

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