C# Class NLog.Internal.StringBuilderExt

Helpers for StringBuilder, which is used in e.g. layout renderers.
Afficher le fichier Open project: NLog/NLog

Méthodes publiques

Méthode Description
Append ( this builder, object o, LogEventInfo logEvent, LoggingConfiguration configuration ) : void

Append a value and use formatProvider of logEvent or configuration to convert to string.

AppendInvariant ( this builder, int value ) : void

Appends int without using culture, and most importantly without garbage

AppendInvariant ( this builder, uint value ) : void

Appends uint without using culture, and most importantly without garbage Credits Gavin Pugh - http://www.gavpugh.com/2010/04/01/xnac-avoiding-garbage-when-working-with-stringbuilder/

ClearBuilder ( this builder ) : void

Clears the provider StringBuilder

Method Details

Append() public static méthode

Append a value and use formatProvider of logEvent or configuration to convert to string.
public static Append ( this builder, object o, LogEventInfo logEvent, LoggingConfiguration configuration ) : void
builder this
o object value to append.
logEvent LogEventInfo current logEvent for FormatProvider.
configuration NLog.Config.LoggingConfiguration Configuration for DefaultCultureInfo
Résultat void

AppendInvariant() public static méthode

Appends int without using culture, and most importantly without garbage
public static AppendInvariant ( this builder, int value ) : void
builder this
value int value to append
Résultat void

AppendInvariant() public static méthode

Appends uint without using culture, and most importantly without garbage Credits Gavin Pugh - http://www.gavpugh.com/2010/04/01/xnac-avoiding-garbage-when-working-with-stringbuilder/
public static AppendInvariant ( this builder, uint value ) : void
builder this
value uint value to append
Résultat void

ClearBuilder() public static méthode

Clears the provider StringBuilder
public static ClearBuilder ( this builder ) : void
builder this
Résultat void