Table of Contents

Class StateHolder<T>

Namespace
ConfigurableWarning.API.State
Assembly
RedstoneWizard08.ContentLibrary.dll

A state holder.

public class StateHolder<T>

Type Parameters

T

The option's type.

Inheritance
StateHolder<T>
Derived
Inherited Members

Properties

this[string]

Get or set an option's state.

public virtual T? this[string name] { get; set; }

Parameters

name string

The option.

Property Value

T

Its state.

Methods

GetOrDefault(string, T)

Get an option's state or a default value.

public T GetOrDefault(string name, T defaultValue)

Parameters

name string

The option.

defaultValue T

The default value.

Returns

T

The value.