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(); }
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(); }