# Arithmetic.OperatorAttribute class

Namespace: [Grasshopper2](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
public sealed class Arithmetic.OperatorAttribute : Attribute
```

Any operator method inside an [ArithmeticRepository](https://developer.rhino3d.com/api/gh2/type/grasshopper2.arithmeticrepository.md) must be decorated with this attribute to identify it as such. The method signature must follow: TResult Method(TA a, TB b)

## Constructors

- [Arithmetic.OperatorAttribute](https://developer.rhino3d.com/api/gh2/type/grasshopper2.arithmetic.operatorattribute/ctor.md): Create a new operator attribute.

## Properties

- [Operator](https://developer.rhino3d.com/api/gh2/type/grasshopper2.arithmetic.operatorattribute/operator.md): Gets the operator specified by this attribute.
