Class AbstractDynamicLinqCustomTypeProvider
The abstract DynamicLinqCustomTypeProvider which is used by the DefaultDynamicLinqCustomTypeProvider and can be used by a custom TypeProvider like in .NET Core.
Inheritance
Inherited Members
Namespace: System.Linq.Dynamic.Core.CustomTypeProviders
Assembly: System.Linq.Dynamic.Core.dll
Syntax
public abstract class AbstractDynamicLinqCustomTypeProvider
Methods
| Improve this Doc View SourceFindTypesMarkedWithDynamicLinqTypeAttribute(IEnumerable<Assembly>)
Finds the unique types marked with DynamicLinqTypeAttribute.
Declaration
protected IEnumerable<Type> FindTypesMarkedWithDynamicLinqTypeAttribute(IEnumerable<Assembly> assemblies)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.Reflection.Assembly> | assemblies | The assemblies to process. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Type> | System.Collections.Generic.IEnumerable<T> |
GetAssemblyTypesWithDynamicLinqTypeAttribute(IEnumerable<Assembly>)
Gets the assembly types annotated with DynamicLinqTypeAttribute in an Exception friendly way.
Declaration
protected Type[] GetAssemblyTypesWithDynamicLinqTypeAttribute(IEnumerable<Assembly> assemblies)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.Reflection.Assembly> | assemblies | The assemblies to process. |
Returns
Type | Description |
---|---|
System.Type[] | Array of System.Type |
ResolveType(IEnumerable<Assembly>, String)
Resolve any type which is registered in the current application domain.
Declaration
protected Type ResolveType(IEnumerable<Assembly> assemblies, string typeName)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.Reflection.Assembly> | assemblies | The assemblies to inspect. |
System.String | typeName | The typename to resolve. |
Returns
Type | Description |
---|---|
System.Type | A resolved System.Type or null when not found. |
ResolveTypeBySimpleName(IEnumerable<Assembly>, String)
Resolve a type by the simple name which is registered in the current application domain.
Declaration
protected Type ResolveTypeBySimpleName(IEnumerable<Assembly> assemblies, string simpleTypeName)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.Reflection.Assembly> | assemblies | The assemblies to inspect. |
System.String | simpleTypeName | The simple typename to resolve. |
Returns
Type | Description |
---|---|
System.Type | A resolved System.Type or null when not found. |