C# 클래스 NLog.Internal.StringBuilderExt

Helpers for StringBuilder, which is used in e.g. layout renderers.
파일 보기 프로젝트 열기: NLog/NLog

공개 메소드들

메소드 설명
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

메소드 상세

Append() 공개 정적인 메소드

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
리턴 void

AppendInvariant() 공개 정적인 메소드

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
리턴 void

AppendInvariant() 공개 정적인 메소드

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
리턴 void

ClearBuilder() 공개 정적인 메소드

Clears the provider StringBuilder
public static ClearBuilder ( this builder ) : void
builder this
리턴 void