Exemple #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();
 }
Exemple #2
0
 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();
 }