-
-
Notifications
You must be signed in to change notification settings - Fork 104
Extension Methods
axunonb edited this page Mar 12, 2022
·
3 revisions
SmartFormat has the following extension methods for StringBuilder
, TextWriter
(which works with Console
, too) and string
.
ExtensionMethods are included in SmartFormat.SmartExtensions
.
Signatures:
StringBuilder.AppendSmart("template", args...);
StringBuilder.AppendLineSmart("template", args...);
Console.Out.WriteSmart("template", args...);
Console.Out.WriteLineSmart("template", args...);
string.FormatSmart("template", args...);
- Syntax, Terminology
- Placeholders and Nesting
- string.Format Compatibility
- Character Literals in Format Strings
- HTML With CSS or JavaScript
- Data Source Extensions
- Default _ DefaultFormatter
- Lists _ ListFormatter
- Choose _ ChooseFormatter
- Condition _ ConditionalFormatter
- Null _ NullFormatter
- SubString _ SubStringFormatter
- RegEx _ IsMatchFormatter
- Pluralization _ PluralLocalizationFormatter
- Localization _ LocalizationFormatter
- Templates _ TemplateFormatter
- TimeSpan _ TimeFormatter
- XML _ XElementFormatter
- Extension Methods
- Home
- Common Pitfalls
- HTML with CSS or JavaScript
- Overview
- Main Features
- Formatters
- Extra Features
- Console and StringBuilder
- TemplateFormatter
- SmartSettings to control Smart.Format behavior
- Additional Info
- License