C# Class NSupport.StringFormatting

Provides extension methods for string for fomatting.
Show file Open project: jittuu/NSupport

Public Methods

Method Description
FormatWith ( this source ) : string

Replaces one or more format items in a specified string with the string representation of a specified object. This method uses String.Format(string, object[]) method intenally.

FormatWith ( this source, IFormatProvider provider ) : string

Replaces one or more format items in a specified string with the string representation of a specified object. This method uses String.Format(IFormatProvider, string, object[]) method intenally.

Method Details

FormatWith() public static method

Replaces one or more format items in a specified string with the string representation of a specified object. This method uses String.Format(string, object[]) method intenally.
public static FormatWith ( this source ) : string
source this A instance.
return string

FormatWith() public static method

Replaces one or more format items in a specified string with the string representation of a specified object. This method uses String.Format(IFormatProvider, string, object[]) method intenally.
public static FormatWith ( this source, IFormatProvider provider ) : string
source this A instance.
provider IFormatProvider An object that supplies culture-specific formatting information.
return string