C# Class System.StringBuilderExtensions

Mostra file Open project: BF2Statistics/ControlCenter

Public Methods

Method Description
AppendIf ( this builder, bool condition, object value ) : StringBuilder

Appends an Object to this string builder if the condition is true.

Clear ( this builder ) : void

Clears the current contents of this StringBuilder

Method Details

AppendIf() public static method

Appends an Object to this string builder if the condition is true.
public static AppendIf ( this builder, bool condition, object value ) : StringBuilder
builder this
condition bool Indicates whether we append this object to the end of this StringBuilder
value object The value to append
return StringBuilder

Clear() public static method

Clears the current contents of this StringBuilder
public static Clear ( this builder ) : void
builder this
return void