Table of Contents

Interface ISavedStatePair<T>

Namespace
SkyrimForge
Assembly
SkyrimForge.dll

One entry of a saved-state store, with the key beside it so a caller names it once and reads and writes it as T.

public interface ISavedStatePair<T> where T : struct, IParsable<T>

Type Parameters

T

Remarks

Converts in both directions with the invariant culture, so a value written under one culture parses under another. A form ID goes through ISavedStateFormPair<TForm> instead, since a form ID stored as a number skips the mapping SetFormId(string, FormId<Form>?) describes.

Properties

Key

The key this reads and writes within its store.

string Key { get; }

Property Value

string

Value

The stored value. It is null where nothing is stored under Key. Assigning null drops the key.

T? Value { get; set; }

Property Value

T?

Exceptions

FormatException

The stored text does not parse as T.