C# Class StringFormatWithExtension, extensions

Requires a reference to System.Web.
Exibir arquivo Open project: netfx/extensions

Public Methods

Method Description
FormatWith ( this format, object source ) : string

Formats the string with the given source object. Expression like {Id} are replaced with the corresponding property value in the source. Supports all DataBinder.Eval expressions formats for property access.

Private Methods

Method Description
OutExpression ( object source, string expression ) : string

Method Details

FormatWith() public static method

Formats the string with the given source object. Expression like {Id} are replaced with the corresponding property value in the source. Supports all DataBinder.Eval expressions formats for property access.
public static FormatWith ( this format, object source ) : string
format this
source object
return string