示例#1
0
 public Constructor(AccessModifier accessModifier, String name)
 {
     this.Modifier          = new ConstructorModifier(accessModifier);
     this.Name              = name;
     this.Parameters        = new List <MethodParameter>();
     this.GenericParameters = new List <String>();
     this.Body              = new CodeBlockCollection();
 }
示例#2
0
文件: Method.cs 项目: youye00/higlabo
 public Method(MethodAccessModifier accessModifier, String name)
 {
     this.Modifier          = new MethodModifier(accessModifier);
     this.ReturnTypeName    = new TypeName("void");
     this.Name              = name;
     this.Parameters        = new List <MethodParameter>();
     this.GenericParameters = new List <String>();
     this.Body              = new CodeBlockCollection();
 }