/// <summary>
 /// This method should only be used internally.
 /// </summary>
 internal CustomFormatInfo(ExtendedStringFormatter formatter, TextWriter newOutput, IFormatProvider newProvider, string newFormat, object[] newArgs)
 {
     this._output = newOutput;
     if (_output is StringWriter) {
         // Let's use the underlying StringBuilder for better performance
         _outputSB = ((StringWriter)_output).GetStringBuilder();
     }
     this.mFormat = newFormat;
     this.mArguments = newArgs;
     this.mProvider = newProvider;
     _formatter = formatter;
 }
Exemple #2
0
 /// <summary>
 /// This method should only be used internally.
 /// </summary>
 internal CustomFormatInfo(ExtendedStringFormatter formatter, TextWriter newOutput, IFormatProvider newProvider, string newFormat, object[] newArgs)
 {
     this._output = newOutput;
     if (_output is StringWriter)
     {
         // Let's use the underlying StringBuilder for better performance
         _outputSB = ((StringWriter)_output).GetStringBuilder();
     }
     this.mFormat    = newFormat;
     this.mArguments = newArgs;
     this.mProvider  = newProvider;
     _formatter      = formatter;
 }
Exemple #3
0
 /// <summary>
 /// This method should only be used internally.
 /// </summary>
 internal CustomFormatInfo(ExtendedStringFormatter formatter, TextWriter newOutput, string newFormat, object[] newArgs)
     : this(formatter, newOutput, null, newFormat, newArgs)
 {
 }
 /// <summary>
 /// This method should only be used internally.
 /// </summary>
 internal CustomFormatInfo(ExtendedStringFormatter formatter, TextWriter newOutput, string newFormat, object[] newArgs)
     : this(formatter, newOutput, null, newFormat, newArgs)
 {
 }