/// Replaces the format item in a specified with the text equivalent of the value of a corresponding instance in a specified array. A specified parameter supplies culture-specific formatting information. /// A copy of format in which the format items have been replaced by the equivalent of the corresponding instances of in args. /// An array containing zero or more objects to format. /// A containing zero or more format items. /// An that supplies culture-specific formatting information. /// format is invalid.-or- The number indicating an argument to format is less than zero, or greater than or equal to the length of the args array. /// format or args is null. /// 1 public static string Format(IFormatProvider provider, string format, params object[] args) { if ((format == null) || (args == null)) { throw new ArgumentNullException((format == null) ? "format" : "args"); } StringBuilder builder1 = new StringBuilder(format.Length + (args.Length * 8)); builder1.AppendFormat(provider, format, args); return builder1.ToString(); }