StringBuilderExtensions Class
Provides extension methods for StringBuilder.
public static class StringBuilderExtensionsMethods
| Name | Description |
|---|---|
| StringBuilder.AppendFormattedObject(object?, string?) | Appends a text representation of an object to the end of this instance, using the same algorithm as ExceptionHelper.FormatObject. |
StringBuilder.AppendFormattedObject(object?, string?)
Appends a text representation of an object to the end of this instance, using the same algorithm as ExceptionHelper.FormatObject.
extension(StringBuilder @this)
{
public StringBuilder AppendFormattedObject(object? obj, string? format = null)
}Parameters
thisStringBuilder- The
StringBuilderon which this method is called. objobject?- The object to represent. Can be
null. formatstring?- An optional format string to apply if
objimplementsIFormattable.
Returns
StringBuilder A reference to this instance after the append operation has completed.
Exceptions
ArgumentNullExceptionthisisnull.