string ToBinaryExpressionType(BinaryExpressionTypeCPPModel op) { if (!_binaryExpressionLookup.ContainsKey(op)) { throw new Exception($"Unsupported binary operation type: {op}"); } return(_binaryExpressionLookup[op]); }
public BinaryExpressionCPPModel(BinaryExpressionTypeCPPModel Type = 0, ExpressionCPPModel Left = null, ExpressionCPPModel Right = null) { this.Type = Type; this.Left = Left ?? default(ExpressionCPPModel); this.Right = Right ?? default(ExpressionCPPModel); }