public static ClassStatement NestedClass(this ClassStatement classStatement, string name, Action<ClassStatement> @class)
 {
     var nestedClassStatement = new ClassStatement(name);
     @class(nestedClassStatement);
     classStatement.AddNestedClass(nestedClassStatement);
     return nestedClassStatement;
 }
Exemplo n.º 2
0
 public static ClassStatement Class(string name, Action<ClassStatement> @class)
 {
     var classStatement = new ClassStatement(name);
     @class(classStatement);
     return classStatement;
 }
Exemplo n.º 3
0
 public void AddNestedClass(ClassStatement classStatement)
 {
     body.AddStatement(classStatement);
 }