Exemplo n.º 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();
 }
Exemplo n.º 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();
 }