Show / Hide Table of Contents

Struct StringBuilderConsumer

Represents implementation of IReadOnlySpanConsumer<T> in the form of the writer to StringBuilder.

Implements
IReadOnlySpanConsumer<char>
ISupplier<ReadOnlyMemory<char>, CancellationToken, ValueTask>
IFunctional<Func<ReadOnlyMemory<char>, CancellationToken, ValueTask>>
IEquatable<StringBuilderConsumer>
Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
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 Source

StringBuilderConsumer(StringBuilder)

Wraps the builder.

Declaration
public StringBuilderConsumer(StringBuilder builder)
Parameters
Type Name Description
StringBuilder builder

The builder.

Exceptions
Type Condition
ArgumentNullException

builder is null.

Properties

| Edit this page View Source

IsEmpty

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 Source

ToString()

Returns the fully qualified type name of this instance.

Declaration
public override string? ToString()
Returns
Type Description
string

The fully qualified type name.

Overrides
ValueType.ToString()

Operators

| Edit this page View Source

implicit 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

builder is null.

Implements

IReadOnlySpanConsumer<T>
ISupplier<T1, T2, TResult>
IFunctional<TDelegate>
IEquatable<T>

Extension Methods

BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, ReadOnlySpan<T>)
Collection.ToAsyncEnumerator<TEnumerator, T>(TEnumerator, CancellationToken)
Collection.ToClassicEnumerator<TEnumerator, T>(TEnumerator)
Enumerator.Skip<TEnumerator, T>(ref TEnumerator, int)
ExpressionBuilder.Const<T>(T)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾