Method Append
Append(Char)
Appends one char
to the current UnsafeStringBuilder.
Declaration
public bool Append(char c)
Parameters
Type | Name | Description |
---|---|---|
System.Char | c | A |
Returns
Type | Description |
---|---|
System.Boolean |
|
Append(Char, Char)
Appends two char
to the current UnsafeStringBuilder.
Declaration
public bool Append(char c1, char c2)
Parameters
Type | Name | Description |
---|---|---|
System.Char | c1 | The first |
System.Char | c2 | The second |
Returns
Type | Description |
---|---|
System.Boolean |
|
Append(Char, Char, Char)
Appends three char
to the current UnsafeStringBuilder.
Declaration
public bool Append(char c1, char c2, char c3)
Parameters
Type | Name | Description |
---|---|---|
System.Char | c1 | The first |
System.Char | c2 | The second |
System.Char | c3 | The third |
Returns
Type | Description |
---|---|
System.Boolean |
|
Append(Char, Char, Char, Char)
Appends four char
to the current UnsafeStringBuilder.
Declaration
public bool Append(char c1, char c2, char c3, char c4)
Parameters
Type | Name | Description |
---|---|---|
System.Char | c1 | The first |
System.Char | c2 | The second |
System.Char | c3 | The third |
System.Char | c4 | The fourth |
Returns
Type | Description |
---|---|
System.Boolean |
|
Append(Char, Char, Char, Char, Char)
Appends five char
to the current UnsafeStringBuilder.
Declaration
public bool Append(char c1, char c2, char c3, char c4, char c5)
Parameters
Type | Name | Description |
---|---|---|
System.Char | c1 | The first |
System.Char | c2 | The second |
System.Char | c3 | The third |
System.Char | c4 | The fourth |
System.Char | c5 | The fifth |
Returns
Type | Description |
---|---|
System.Boolean |
|
Append(Char[], Int32, Int32)
Appends an array segment of char
to the current UnsafeStringBuilder.
Declaration
public bool Append(char[] c, int offset, int count)
Parameters
Type | Name | Description |
---|---|---|
System.Char[] | c | A non-null array of |
System.Int32 | offset | Index of the first |
System.Int32 | count | Number of |
Returns
Type | Description |
---|---|
System.Boolean |
|
Append(Char*, Int32)
Appends an unmanaged array of char
to the current UnsafeStringBuilder.
Declaration
public bool Append(char *c, int count)
Parameters
Type | Name | Description |
---|---|---|
System.Char* | c | A non-null pointer to an unmanaged array of |
System.Int32 | count | Number of |
Returns
Type | Description |
---|---|
System.Boolean |
|
Append(Char, Int32)
Appends several times the same char
to the current UnsafeStringBuilder.
Declaration
public bool Append(char c, int count)
Parameters
Type | Name | Description |
---|---|---|
System.Char | c | A |
System.Int32 | count | The number of times |
Returns
Type | Description |
---|---|
System.Boolean |
|
Append(Char[])
Appends an array of char
to the current UnsafeStringBuilder.
Declaration
public bool Append(char[] c)
Parameters
Type | Name | Description |
---|---|---|
System.Char[] | c | An array of |
Returns
Type | Description |
---|---|
System.Boolean |
|
Append(ReadOnlySpan<Char>)
Declaration
public bool Append(ReadOnlySpan<char> c)
Parameters
Type | Name | Description |
---|---|---|
System.ReadOnlySpan<System.Char> | c |
Returns
Type | Description |
---|---|
System.Boolean |
Append(String)
Appends a System.String to the current UnsafeStringBuilder.
Declaration
public bool Append(string str)
Parameters
Type | Name | Description |
---|---|---|
System.String | str | A System.String. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Append(String, Int32, Int32)
Appends a part of a System.String to the current UnsafeStringBuilder.
Declaration
public bool Append(string str, int startIndex, int length)
Parameters
Type | Name | Description |
---|---|---|
System.String | str | A System.String. |
System.Int32 | startIndex | The index of the first character of the string to append. |
System.Int32 | length | The number of characters to append. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Append(UnsafeStringBuilder)
Appends the current value of a UnsafeStringBuilder to the current UnsafeStringBuilder.
Declaration
public bool Append(UnsafeStringBuilder stringBuilder)
Parameters
Type | Name | Description |
---|---|---|
UnsafeStringBuilder | stringBuilder |
Returns
Type | Description |
---|---|
System.Boolean |
|
Append(Byte)
Appends a System.Byte (with decimal formatting) to the current UnsafeStringBuilder.
Declaration
public bool Append(byte value)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | value | The value to be appended. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Append(SByte)
Appends an System.SByte (with decimal formatting) to the current UnsafeStringBuilder.
Declaration
public bool Append(sbyte value)
Parameters
Type | Name | Description |
---|---|---|
System.SByte | value | The value to be appended. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Append(UInt16)
Appends a System.UInt16 (with decimal formatting) to the current UnsafeStringBuilder.
Declaration
public bool Append(ushort value)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16 | value | The value to be appended. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Append(Int16)
Appends a System.Int16 (with decimal formatting) to the current UnsafeStringBuilder.
Declaration
public bool Append(short value)
Parameters
Type | Name | Description |
---|---|---|
System.Int16 | value | The value to be appended. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Append(UInt32)
Appends a System.UInt32 (with decimal formatting) to the current UnsafeStringBuilder.
Declaration
public bool Append(uint value)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | value | The value to be appended. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Append(Int32)
Appends a System.Int32 (with decimal formatting) to the current UnsafeStringBuilder.
Declaration
public bool Append(int value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | value | The value to be appended. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Append(UInt64)
Appends a System.UInt64 (with decimal formatting) to the current UnsafeStringBuilder.
Declaration
public bool Append(ulong value)
Parameters
Type | Name | Description |
---|---|---|
System.UInt64 | value | The value to be appended. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Append(Int64)
Appends a System.Int64 (with decimal formatting) to the current UnsafeStringBuilder.
Declaration
public bool Append(long value)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | value | The value to be appended. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Append(Boolean)
Appends a System.Boolean (true
or false
, literally) to the current UnsafeStringBuilder.
Declaration
public bool Append(bool value)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | value | The value to be appended. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Append<T>(T, ReadOnlySpan<Char>, IFormatProvider)
Declaration
public void Append<T>(T formattable, ReadOnlySpan<char> format = null, IFormatProvider formatProvider = null)
where T : ISpanFormattable
Parameters
Type | Name | Description |
---|---|---|
T | formattable | |
System.ReadOnlySpan<System.Char> | format | |
System.IFormatProvider | formatProvider |
Type Parameters
Name | Description |
---|---|
T |