Table of Contents

Interface ITypeDataProvider

Namespace
Loehnert.TypeAndResult.Provider
Assembly
Loehnert.TypeAndResult.dll

Interface for a type data provider.

public interface ITypeDataProvider
Extension Methods

Properties

Description

Gets a localized description.

string Description { get; }

Property Value

string

Key

Gets a unique key.

string Key { get; }

Property Value

string

Methods

GetTypes()

Gets the available type identifiers.

IEnumerable<string> GetTypes()

Returns

IEnumerable<string>

An enumeration of the available type identifiers.

Load(string)

Loads type data.

TypeData Load(string typeIdentifier)

Parameters

typeIdentifier string

Identifier for the type.

Returns

TypeData

The TypeData instance for the given type.

Exceptions

TypeNotFoundException

Thrown when no type with the given type identifier is found.

Save(TypeData)

Saves type data.

void Save(TypeData typeData)

Parameters

typeData TypeData

Type data to be saved.