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

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

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

                return(this);
            }