Table of Contents

Class PyValueAttribute

Namespace
Gym.Utils
Assembly
Gym.dll

The Python value of a PyEnumAttribute enum's member: the .value of a Python Enum member ("NextStep"), or the string a string member stands for ("rgb_array").

[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
public sealed class PyValueAttribute : Attribute
Inheritance
PyValueAttribute
Inherited Members
Extension Methods

Constructors

PyValueAttribute(string)

Gives the member its Python value.

public PyValueAttribute(string value)

Parameters

value string

The value, spelled exactly as in the Gymnasium source.

Properties

Value

The Python value.

public string Value { get; }

Property Value

string