C# Class YAMP.Register

Helpers to handle operator registration.
Afficher le fichier Open project: FlorianRappl/YAMP

Méthodes publiques

Méthode 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 méthode

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
Résultat void

BinaryOperator() public static méthode

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.
Résultat void