Class TypeDataProviderExtensions
- Namespace
- Loehnert.TypeAndResult.Provider
- Assembly
- Loehnert.TypeAndResult.dll
Extensions for type data providers.
public static class TypeDataProviderExtensions
- Inheritance
-
TypeDataProviderExtensions
- Inherited Members
Methods
LoadWithInheritance(ITypeDataProvider, string)
Loads the type and recursive all base types.
public static TypeData LoadWithInheritance(this ITypeDataProvider typeDataProvider, string typeIdentifier)
Parameters
typeDataProvider
ITypeDataProviderThe type data provider for loading.
typeIdentifier
stringIdentifier for the type.
Returns
- TypeData
By recursive inheritance created TypeData instance. Inherit(TypeData, TypeData)
Remarks
To use type data inheritance you have to export the additional type data parameter BaseTypeParameterDefinition. This parameter defines the name of the base type.
Exceptions
- TypeNotFoundException
Thrown when no type or base type with the given type identifier is found.