Exemplo n.º 1
0
        public override string ToString()
        {
            if (comment == null)
            {
                return(string.Empty);
            }

            if (Alignment == Alignment.Right)
            {
                return($"{CodeLine.Tab(2)}//{comment}");
            }
            else
            {
                return($"//{comment}");
            }
        }
Exemplo n.º 2
0
 public string ToString(int indent)
 {
     return(string.Join(Environment.NewLine, lines.Select(line => CodeLine.Tab(indent) + line.ToString())));
 }