Class SeperatedStringBuilder
Stringbuilder which automaticaly add a sparator
Inheritance
System.Object
SeperatedStringBuilder
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Simplic
Assembly: Simplic.CoreLib.dll
Syntax
public class SeperatedStringBuilder
Constructors
| Improve this Doc View SourceSeperatedStringBuilder(String, String)
Initialize new seperated string builder
Declaration
public SeperatedStringBuilder(string separator, string enclosingString = "")
Parameters
Type | Name | Description |
---|---|---|
System.String | separator | Seperator character which will be added before Append and AppendLine when text exists. |
System.String | enclosingString | If an enclosing string is set, all added string will be wrapped around that string |
Methods
| Improve this Doc View SourceAppend(String)
Append text
Declaration
public void Append(string text)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | Text to add |
AppendLine(String)
Append text and add new line
Declaration
public void AppendLine(string text)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | Text to add |
ToString()
Get as string/text
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | Content as string |
Overrides
System.Object.ToString()