C# Class Core.Framework.MEF.Extensions.StringExtensions

Provides extension methods for the string type.
显示文件 Open project: coreframework/Core-Framework

Public Methods

Method Description
Format ( this @string ) : String

Formats the given String using the specified culture and arguments.

Format ( this @string, CultureInfo culture ) : String

Formats the given String using the specified culture and arguments.

Method Details

Format() public static method

Formats the given String using the specified culture and arguments.
If the input string, or any arguments are null. If the input String is invalid, or the index of a format item is less than zero, or greater than or equal to the length of the args array.
public static Format ( this @string ) : String
@string this
return String

Format() public static method

Formats the given String using the specified culture and arguments.
If the input string, or any arguments are null. If the input String is invalid, or the index of a format item is less than zero, or greater than or equal to the length of the args array.
public static Format ( this @string, CultureInfo culture ) : String
@string this
culture System.Globalization.CultureInfo The culture used to format the string.
return String