Table of Contents

Class RenderResult.Ansi

Namespace
Gym.Envs
Assembly
Gym.dll

An ansi frame: text, possibly with newlines and ANSI escape sequences (toy_text).

public sealed class RenderResult.Ansi : RenderResult, IEquatable<RenderResult>, IDisposable
Inheritance
RenderResult.Ansi
Implements
Inherited Members
Extension Methods

Constructors

Ansi(string)

Wraps the text.

public Ansi(string text)

Parameters

text string

The text.

Exceptions

ArgumentNullException

Thrown when text is null.

Properties

Text

The text.

public string Text { get; }

Property Value

string

Methods

Equals(RenderResult?)

Structural equality (see the class remarks).

public override bool Equals(RenderResult? other)

Parameters

other RenderResult

The other result; may be null.

Returns

bool

true when both are the same case with equal contents.

GetHashCode()

A hash consistent with Equals(RenderResult?): the case and the shapes, never the pixels.

public override int GetHashCode()

Returns

int

The hash.

ToString()

The text itself.

public override string ToString()

Returns

string

The text.