Class ModelTypeResolver
A model type resolver.
Inheritance
System.Object
ModelTypeResolver
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Model
Assembly: Kephas.Model.dll
Syntax
[OverridePriority(Priority.BelowNormal)]
public class ModelTypeResolver : IModelTypeResolver
Constructors
| Improve this Doc View SourceModelTypeResolver(IModelSpaceProvider)
Initializes a new instance of the ModelTypeResolver class.
Declaration
public ModelTypeResolver(IModelSpaceProvider modelSpaceProvider)
Parameters
Type | Name | Description |
---|---|---|
IModelSpaceProvider | modelSpaceProvider | The model space provider. |
Methods
| Improve this Doc View SourceResolveModelType(ITypeInfo, IContext, Boolean)
Resolves the model type.
Declaration
public ITypeInfo ResolveModelType(ITypeInfo rawType, IContext context = null, bool throwOnNotFound = true)
Parameters
Type | Name | Description |
---|---|---|
ITypeInfo | rawType | The raw type. |
IContext | context | Optional. A context for the resolution. |
System.Boolean | throwOnNotFound | Optional. Indicates whether to throw or not when the indicated type is not found. |
Returns
Type | Description |
---|---|
ITypeInfo | The resolved model type or |