public void DerivedToString()
 {
     ToStringFormatState.ToggleToDefault();
     Console.WriteLine("ToString1[ \n" + new Derived().ToString() + "]");
     ToStringFormatState.ToggleToSpaces();
     Console.WriteLine("ToString2[ \n" +
                       ToStringFormatState.DefaultFormat.FormatBuffer(new Derived().ToString()) + "]");
 }
 public void BaseToString()
 {
     ToStringFormatState.ToggleToDefault();
     Console.WriteLine("ToString Before[" + new Base().ToString() + "]");
     ToStringFormatState.ToggleToSpaces();
     Console.WriteLine("ToString[ \n" +
                       ToStringFormatState.DefaultFormat.FormatBuffer(new Base().ToString()) + "]");
 }