public string Generate() { List <string> props = new List <string>(); foreach (var item in Properties) { props.Add(item.Generate()); } List <string> meth = new List <string>(); if (Methods != null && Methods.Count != 0) { foreach (var item in Methods) { meth.Add(item.Generate()); } } return(CSharpWriter.CreateClass(props, GetName(), IsInternal, meth)); }