Class PyValueAttribute
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
valuestringThe value, spelled exactly as in the Gymnasium source.
Properties
Value
The Python value.
public string Value { get; }