C# Class YAMP.Register

Helpers to handle operator registration.
Exibir arquivo Open project: FlorianRappl/YAMP

Public Methods

Method Description
BinaryOperator ( String symbol, BinaryOperatorMappingList list ) : void

Provides registration of operator's Mappings list

BinaryOperator ( String symbol, Type a, Type b, Func handler ) : void

Registers a global binary operator.

Method Details

BinaryOperator() public static method

Provides registration of operator's Mappings list
public static BinaryOperator ( String symbol, BinaryOperatorMappingList list ) : void
symbol String The symbol of the operator, e.g., +.
list BinaryOperatorMappingList The BinaryMapping list of the operator
return void

BinaryOperator() public static method

Registers a global binary operator.
public static BinaryOperator ( String symbol, Type a, Type b, Func handler ) : void
symbol String The symbol of the operator, e.g., +.
a System.Type The type on the left side of the expression.
b System.Type The type on the right side of the expression.
handler Func The handler to invoke.
return void