System.SR.Format C# (CSharp) Method

Format() static private method

static private Format ( string resourceFormat ) : string
resourceFormat string
return string
        internal static string Format(string resourceFormat, params object[] args)
        {
            if (args != null)
            {
                if (UsingResourceKeys())
                {
                    return resourceFormat + string.Join(", ", args);
                }

                return string.Format(resourceFormat, args);
            }

            return resourceFormat;
        }

Same methods

SR::Format ( string resourceFormat, object p1, object p2, object p3 ) : string

Usage Example

示例#1
0
 private static Exception CreateArgumentOutOfRangeException_PrecisionTooLarge()
 {
     return(new ArgumentOutOfRangeException("precision", SR.Format(SR.Argument_PrecisionTooLarge, StandardFormat.MaxPrecision)));
 }
All Usage Examples Of System.SR::Format