Class DefaultTypeResolver
A default service implementation of the ITypeResolver service contract.
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.Reflection
Assembly: Kephas.Core.dll
Syntax
[OverridePriority(Priority.Low)]
public class DefaultTypeResolver : Loggable, ILoggable, ITypeResolver
Constructors
| Improve this Doc View SourceDefaultTypeResolver(IAssemblyLoader)
Initializes a new instance of the DefaultTypeResolver class.
Declaration
public DefaultTypeResolver(IAssemblyLoader assemblyLoader)
Parameters
Type | Name | Description |
---|---|---|
IAssemblyLoader | assemblyLoader | The assembly loader. |
Methods
| Improve this Doc View SourceGetAllAssemblies()
Gets all application assemblies.
Declaration
protected virtual IEnumerable<Assembly> GetAllAssemblies()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Reflection.Assembly> | An enumeration of assemblies. |
ResolveType(String, Boolean)
Resolves a type based on the provided type name.
Declaration
public Type ResolveType(string typeName, bool throwOnNotFound = true)
Parameters
Type | Name | Description |
---|---|---|
System.String | typeName | Name of the type. |
System.Boolean | throwOnNotFound | Indicates whether to throw or not when the indicated type is not found. |
Returns
Type | Description |
---|---|
System.Type | A Type. |
ResolveTypeCore(String)
Core implementation of the ResolveType(String, Boolean) operation.
Declaration
protected virtual Type ResolveTypeCore(string typeName)
Parameters
Type | Name | Description |
---|---|---|
System.String | typeName | Name of the type. |
Returns
Type | Description |
---|---|
System.Type | A Type. |