Struct TextConsumer
Assembly: DotNext.dll
Syntax
public readonly struct TextConsumer : IConsumer<ReadOnlySpan<char>>, ISupplier<ReadOnlyMemory<char>, CancellationToken, ValueTask>, IFunctional, IFlushable, IEquatable<TextConsumer>
Constructors
View Source
TextConsumer(TextWriter)
Declaration
public TextConsumer(TextWriter output)
Parameters
| Type |
Name |
Description |
| TextWriter |
output |
The text writer.
|
Properties
View Source
IsEmpty
Gets a value indicating that the underlying text writer is null.
Declaration
public bool IsEmpty { get; }
Property Value
Methods
View Source
Deconstruct(out TextWriter)
Declaration
public void Deconstruct(out TextWriter output)
Parameters
View Source
Equals(TextConsumer)
Declaration
public bool Equals(TextConsumer other)
Parameters
Returns
View Source
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
View Source
ToString()
Returns a string that represents the underlying writer.
Declaration
public override string? ToString()
Returns
| Type |
Description |
| string |
A string that represents the underlying writer.
|
Overrides
Operators
View Source
operator ==(TextConsumer, TextConsumer)
Declaration
public static bool operator ==(TextConsumer left, TextConsumer right)
Parameters
Returns
View Source
implicit operator TextConsumer(TextWriter)
Declaration
public static implicit operator TextConsumer(TextWriter output)
Parameters
| Type |
Name |
Description |
| TextWriter |
output |
The text writer.
|
Returns
Exceptions
View Source
operator !=(TextConsumer, TextConsumer)
Declaration
public static bool operator !=(TextConsumer left, TextConsumer right)
Parameters
Returns
Implements
Extension Methods