Freigeben über


An invariant version of the same…

An invariant version of the same…

 /// <summary>
/// Extends StringBuilder so that it has an AppendFormatLineInvariant method.
/// </summary>
/// <param name="value">The StringBuilder being extended.</param>
/// <param name="format">A composite format string.</param>
/// <param name="args">An object array that contains zero or more objects to format.</param>
/// <returns>The StringBuilder.</returns>
public static StringBuilder AppendFormatLineInvariant(this StringBuilder value, string format, params object[] args)
{
    return value.AppendLine(string.Format(CultureInfo.InvariantCulture, format, args));
}

Best,

Brian