public void Flip() { StringTheory theory = new StringTheory(this); this.Erase(); while (!theory.IsEmpty()) { this.Push(theory.Pop()); } this.touch(); }
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); } }