예제 #1
0
 private static void AddUsings()
 {
     Usings.ForEach(s =>
     {
         _builder.AppendLine(s);
     });
     _builder.AppendLine("");
 }
예제 #2
0
        protected string PrintUsings()
        {
            var sb = new StringBuilder();

            Usings.ForEach(u => sb.AppendLine($"using {u};"));
            sb.AppendEmptyLine();

            return(sb.ToString());
        }
예제 #3
0
        public override string ToString()
        {
            var output = "using System;";

            Usings.ForEach(us =>
            {
                output += "using " + us + ";" + Environment.NewLine;
            });

            output += Environment.NewLine + Environment.NewLine;
            output += "namespce " + NameSpace + Environment.NewLine + "{" + Environment.NewLine + "\t";
            output += "public class " + ClassName + Environment.NewLine + "\t{";

            return(output);
        }