Exemplo n.º 1
0
 public void Format(string FormatString)
 {
     if (FormatString.Length > 0)
     {
         StringTheory theory  = new StringTheory();
         StringTheory theory2 = new StringTheory(this);
         theory2.Flip();
         for (int i = 0; i < FormatString.Length; i++)
         {
             if (FormatString[i] == '#')
             {
                 theory.Push(theory2.Pop());
             }
             else
             {
                 theory.Push(FormatString[i]);
             }
         }
         base.Renew(theory);
     }
 }
Exemplo n.º 2
0
 public void Format(string FormatString)
 {
     if (FormatString.Length > 0)
     {
         StringTheory theory = new StringTheory();
         StringTheory theory2 = new StringTheory(this);
         theory2.Flip();
         for (int i = 0; i < FormatString.Length; i++)
         {
             if (FormatString[i] == '#')
             {
                 theory.Push(theory2.Pop());
             }
             else
             {
                 theory.Push(FormatString[i]);
             }
         }
         base.Renew(theory);
     }
 }