Write() 공개 메소드

public Write ( char ch ) : void
ch char
리턴 void
예제 #1
0
 private void EndLineWithSemi()
 {
     if (!suppressSemi)
     {
         writer.Write(";");
         TerminateLine();
     }
 }
예제 #2
0
        public void VisitArrayIndexer(CodeArrayIndexerExpression aref)
        {
            Write(aref.TargetObject, PrecPrimary);
            writer.Write("[");
            var sep = "";

            foreach (var sub in aref.Indices)
            {
                writer.Write(sep);
                sep = ",";
                Write(sub, PrecBase);
            }
            writer.Write("]");
        }
예제 #3
0
        public int VisitField(CodeMemberField field)
        {
            RenderMemberFieldAttributes(field.Attributes);
            var expWriter = new CSharpExpressionWriter(writer);

            expWriter.VisitTypeReference(field.FieldType);
            writer.Write(" ");
            writer.WriteName(field.FieldName);
            if (field.InitExpression != null)
            {
                writer.Write(" = ");
                field.InitExpression.Accept(expWriter);
            }
            writer.Write(";");
            writer.WriteLine();
            return(0);
        }