DotNext by .NET Foundation and Contributors

<PackageReference Include="DotNext" Version="4.2.0-beta.2" />

 TextConsumer

Represents implementation of IReadOnlySpanConsumer<T> in the form of the writer to TextWriter.
public bool IsEmpty { get; }

Gets a value indicating that the underlying text writer is null.

public TextConsumer(TextWriter output)

Wraps the text writer.

public static bool op_Equality(TextConsumer x, TextConsumer y)

Determines whether the two objects contain references to the same text writer.

public static TextConsumer op_Implicit(TextWriter output)

Wraps the text writer.

public static bool op_Inequality(TextConsumer x, TextConsumer y)

Determines whether the two objects contain references to the different text writers.

public bool Equals(TextConsumer other)

Determines whether this object contains the same text writer as the specified object.