public static IList<string> ToCode( this IEnumerable<DataBaseClass> lst, Indent indent)
        {
            var ret = new List<string>();
            foreach( var item in lst)
            {
                ret.AddRange(item.ToCode(indent));
                ret.Add(string.Empty);
            }

            //	Remove the last empty line.
            if(ret.Any())
            {
                ret.RemoveAt(ret.Count - 1);
            }

            return ret;
        }
 public static IList<string> ToPropertyAssignmentList(this IList<ParameterData> me, Indent indent)
 {
     return me
         .Select(p => string.Format("{0}this.{1} = {2};",indent.IndentString(), p.Name, Common.ToCamelCase(p.Name)))
         .ToList();
 }
示例#3
0
 public IList<string> ToCode(Indent indent)
 {
     return ToCode().Select(row => _indent.IndentString(indent.Level) + row).ToList();
 }