-
-
Notifications
You must be signed in to change notification settings - Fork 104
v2 StringBuilder.AppendLineSmart, Console.Out.WriteLineSmart
axunonb edited this page Feb 6, 2022
·
1 revision
SmartFormat has a few extension methods for StringBuilder
and TextWriter
(which works with Console
too).
Signatures:
StringBuilder.AppendSmart("template", args...);
StringBuilder.AppendLineSmart("template", args...);
Console.Out.WriteSmart("template", args...);
Console.Out.WriteLineSmart("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