public static ClassStatement NestedClass(this ClassStatement classStatement, string name, Action<ClassStatement> @class)
 {
     var nestedClassStatement = new ClassStatement(name);
     @class(nestedClassStatement);
     classStatement.AddNestedClass(nestedClassStatement);
     return nestedClassStatement;
 }
示例#2
0
文件: Cs.cs 项目: jorgehmv/CsBuilder
 public static ClassStatement Class(string name, Action<ClassStatement> @class)
 {
     var classStatement = new ClassStatement(name);
     @class(classStatement);
     return classStatement;
 }
示例#3
0
 public void AddNestedClass(ClassStatement classStatement)
 {
     body.AddStatement(classStatement);
 }