CodeTypeDeclaration GetTypeDeclaration(string className) { CodeTypeDeclaration type = new CodeTypeDeclaration(); type.Name = className; type.Members.Add(GetConstructor()); type.Members.Add(GetMemberMethod()); return type; }