Table of Contents

Class ConfigKey<T>

Namespace
MonkeyLoader.Configuration
Assembly
MonkeyLoader.dll

Represents a identifier-only config item, which can be used to get or set the values of defining keys with the same Id.

public class ConfigKey<T> : ConfigKey, ITypedConfigKey<T>, ITypedConfigKey, IConfigKey, IEquatable<IConfigKey>, IIdentifiable

Type Parameters

T

The type of this config item's value.

Inheritance
ConfigKey<T>
Implements
Inherited Members
Extension Methods

Constructors

ConfigKey(string)

Creates a new identifier-only config item with the given id.

public ConfigKey(string id)

Parameters

id string

The mod-unique identifier of the config item. Must not be null or whitespace.

Exceptions

ArgumentNullException

If the id is null or whitespace.

Properties

AsUntyped

public IConfigKey AsUntyped { get; }

Property Value

IConfigKey

ValueType

Gets the Type of this config item's value.

public Type ValueType { get; }

Property Value

Type

Operators

implicit operator ConfigKey<T>(string)

Creates a new ConfigKey<T> instance from the given name.

public static implicit operator ConfigKey<T>(string name)

Parameters

name string

The mod-unique name of the config item.

Returns

ConfigKey<T>