Interface ITypeDataProvider
Interface for a type data provider.
Namespace: Loehnert.TypeAndResult.Provider
Assembly: Loehnert.TypeAndResult.dll
Syntax
public interface ITypeDataProvider
Properties
Description
Gets a localized description.
Declaration
string Description { get; }
Property Value
Type | Description |
---|---|
String |
Key
Gets a unique key.
Declaration
string Key { get; }
Property Value
Type | Description |
---|---|
String |
Methods
GetTypes()
Gets the available type identifiers.
Declaration
IEnumerable<string> GetTypes()
Returns
Type | Description |
---|---|
IEnumerable<String> | An enumeration of the available type identifiers. |
Load(String)
Loads type data.
Declaration
TypeData Load(string typeIdentifier)
Parameters
Type | Name | Description |
---|---|---|
String | typeIdentifier | Identifier for the type. |
Returns
Type | Description |
---|---|
TypeData | The TypeData instance for the given type. |
Exceptions
Type | Condition |
---|---|
TypeNotFoundException | Thrown when no type with the given type identifier is found. |
Save(TypeData)
Saves type data.
Declaration
void Save(TypeData typeData)
Parameters
Type | Name | Description |
---|---|---|
TypeData | typeData | Type data to be saved. |