Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
struct Microsoft.​Extensions.​Primitives.​InplaceStringBuilder
Assembly: Microsoft.Extensions.Primitives
Provides a mechanism for fast, non-allocating string concatenation.
Properties
public
int
Capacity
Gets the number of characters that the current <see cref="T:Microsoft.Extensions.Primitives.InplaceStringBuilder" /> object can contain.
Methods
public
void
Append​(StringSegment segment)
Appends a string segment to the end of the current <see cref="T:Microsoft.Extensions.Primitives.InplaceStringBuilder" /> instance.
segment
The string segment to append.
public
void
Append​(char c)
Appends a character to the end of the current <see cref="T:Microsoft.Extensions.Primitives.InplaceStringBuilder" /> instance.
c
The character to append.
public
void
Append​(string value)
Appends a string to the end of the current <see cref="T:Microsoft.Extensions.Primitives.InplaceStringBuilder" /> instance.
value
The string to append.
public
void
Append​(string value,
int offset,
int count)
Appends a substring to the end of the current <see cref="T:Microsoft.Extensions.Primitives.InplaceStringBuilder" /> instance.
value
The string that contains the substring to append.
offset
The starting position of the substring within value.
count
The number of characters in value to append.
public
string
ToString​()
Converts the value of this instance to a String.
Returns A string whose value is the same as this instance.
protected
void
Finalize​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object