C# Class StringFormatWithExtension, extensions

Requires a reference to System.Web.
Afficher le fichier Open project: netfx/extensions

Méthodes publiques

Méthode 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

Méthode Description
OutExpression ( object source, string expression ) : string

Method Details

FormatWith() public static méthode

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
Résultat string