Struct StringBuilderConsumer
Represents implementation of IReadOnlySpanConsumer<T> in the form of the writer to StringBuilder.
Implements
Inherited Members
Namespace: DotNext.Text
Assembly: DotNext.dll
Syntax
public readonly record struct StringBuilderConsumer : IReadOnlySpanConsumer<char>, ISupplier<ReadOnlyMemory<char>, CancellationToken, ValueTask>, IFunctional<Func<ReadOnlyMemory<char>, CancellationToken, ValueTask>>, IEquatable<StringBuilderConsumer>
Constructors
| Edit this page View SourceStringBuilderConsumer(StringBuilder)
Wraps the builder.
Declaration
public StringBuilderConsumer(StringBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
StringBuilder | builder | The builder. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
Properties
| Edit this page View SourceIsEmpty
Gets a value indicating that the underlying builder is null.
Declaration
public bool IsEmpty { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
| Edit this page View SourceToString()
Returns the fully qualified type name of this instance.
Declaration
public override string? ToString()
Returns
Type | Description |
---|---|
string | The fully qualified type name. |
Overrides
Operators
| Edit this page View Sourceimplicit operator StringBuilderConsumer(StringBuilder)
Wraps the builder.
Declaration
public static implicit operator StringBuilderConsumer(StringBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
StringBuilder | builder | The builder. |
Returns
Type | Description |
---|---|
StringBuilderConsumer | The wrapped stream. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|