예제 #1
0
            public PropertyFormatter Property(String methodName)
            {
                Sw.Append("this.");
                Sw.Append(methodName);

                return(new PropertyFormatter(this));
            }
예제 #2
0
 public MethodFormatter Method(String methodName)
 {
     Sw.Append("this.");
     Sw.Append(methodName);
     Sw.Append("(");
     return(new MethodFormatter(this));
 }
예제 #3
0
            public Formatter CommentLine(String text)
            {
                if (!Sw.HasWhiteLine)
                {
                    Sw.AppendLine();
                }

                Sw.Append("// ");
                Sw.AppendLine(text);
                return(this);
            }
예제 #4
0
 public StaticTypeFormatter StaticType(String typeName)
 {
     Sw.Append(typeName);
     return(new StaticTypeFormatter(this));
 }
예제 #5
0
            public Formatter Await()
            {
                Sw.Append("await ");

                return(this);
            }