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
Key
Gets a unique key.
string Key { get; }
Property Value
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
stringIdentifier for the type.
Returns
Exceptions
- TypeNotFoundException
Thrown when no type with the given type identifier is found.
Save(TypeData)
Saves type data.
void Save(TypeData typeData)
Parameters
typeData
TypeDataType data to be saved.