Ejemplo n.º 1
0
 public CSharpGenerator(Driver driver) : base(driver)
 {
     typePrinter       = new CSharpTypePrinter(driver);
     expressionPrinter = new CSharpExpressionPrinter();
     CppSharp.AST.Type.TypePrinterDelegate += type => type.Visit(typePrinter).Type;
 }
Ejemplo n.º 2
0
 public static CSharpExpressionPrinterResult CSharpValue(this Expression value, CSharpExpressionPrinter printer)
 {
     return(value.Visit(printer));
 }
Ejemplo n.º 3
0
 public CSharpGenerator(BindingContext context) : base(context)
 {
     typePrinter       = new CSharpTypePrinter(context);
     expressionPrinter = new CSharpExpressionPrinter(typePrinter);
 }
 public static string CSharpValue(this ExpressionObsolete value, CSharpExpressionPrinter printer)
 {
     return value.Visit(printer);
 }
Ejemplo n.º 5
0
 public CSharpGenerator(Driver driver) : base(driver)
 {
     typePrinter       = new CSharpTypePrinter(driver);
     expressionPrinter = new CSharpExpressionPrinter(typePrinter);
 }