Class InvertedTypeSpace
A container for mappings from slim types to types and slim members to members.
Inheritance
Namespace: System.Reflection
Assembly: Nuqleon.Linq.Expressions.Bonsai.dll
Syntax
public class InvertedTypeSpace : Object
  Constructors
InvertedTypeSpace()
Creates the type space.
Declaration
public InvertedTypeSpace()
  InvertedTypeSpace(IReflectionProvider)
Creates the type space.
Declaration
public InvertedTypeSpace(IReflectionProvider provider)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IReflectionProvider | provider | The reflection provider to use.  | 
      
Methods
ConvertType(TypeSlim)
Gets a CLR type from a slim type.
Declaration
public Type ConvertType(TypeSlim type)
  Parameters
| Type | Name | Description | 
|---|---|---|
| TypeSlim | type | The slim type.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Type | The CLR type represented by the slim type.  | 
      
GetConstructor(ConstructorInfoSlim)
Gets a constructor from a slim constructor.
Declaration
public ConstructorInfo GetConstructor(ConstructorInfoSlim constructorSlim)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ConstructorInfoSlim | constructorSlim | The slim constructor.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Reflection.ConstructorInfo | The constructor represented by the slim constructor.  | 
      
GetConstructorCore(ConstructorInfoSlim, Type, Type[])
Gets a constructor from a CLR type.
Declaration
protected virtual ConstructorInfo GetConstructorCore(ConstructorInfoSlim constructorSlim, Type declaringType, Type[] parameterTypes)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ConstructorInfoSlim | constructorSlim | The slim constructor.  | 
      
| System.Type | declaringType | The declaring CLR type.  | 
      
| System.Type[] | parameterTypes | The constructor parameter CLR types.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Reflection.ConstructorInfo | The declaring type constructor with given parameter types.  | 
      
GetField(FieldInfoSlim)
Gets a field from a slim field.
Declaration
public FieldInfo GetField(FieldInfoSlim fieldSlim)
  Parameters
| Type | Name | Description | 
|---|---|---|
| FieldInfoSlim | fieldSlim | The slim field.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Reflection.FieldInfo | The field represented by the slim field.  | 
      
GetFieldCore(FieldInfoSlim, Type)
Resolves a field on a CLR type.
Declaration
protected virtual FieldInfo GetFieldCore(FieldInfoSlim fieldSlim, Type declaringType)
  Parameters
| Type | Name | Description | 
|---|---|---|
| FieldInfoSlim | fieldSlim | The slim field.  | 
      
| System.Type | declaringType | The declaring CLR type.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Reflection.FieldInfo | The field from the declaring type.  | 
      
GetGenericDefinitionMethodCore(GenericDefinitionMethodInfoSlim, Type)
Gets a generic definition method from a slim generic definition method.
Declaration
protected virtual MethodInfo GetGenericDefinitionMethodCore(GenericDefinitionMethodInfoSlim methodSlim, Type declaringType)
  Parameters
| Type | Name | Description | 
|---|---|---|
| GenericDefinitionMethodInfoSlim | methodSlim | The slim method.  | 
      
| System.Type | declaringType | The declaring CLR type.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Reflection.MethodInfo | The method represented by the slim method.  | 
      
GetGenericMethodCore(GenericMethodInfoSlim, MethodInfo, Type[])
Creates a generic method from the generic method definition.
Declaration
protected virtual MethodInfo GetGenericMethodCore(GenericMethodInfoSlim methodSlim, MethodInfo genericMethodDefinition, params Type[] typeArguments)
  Parameters
| Type | Name | Description | 
|---|---|---|
| GenericMethodInfoSlim | methodSlim | The slim method.  | 
      
| System.Reflection.MethodInfo | genericMethodDefinition | The generic method definition.  | 
      
| System.Type[] | typeArguments | The generic argument types.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Reflection.MethodInfo | The generic method.  | 
      
GetMember(MemberInfoSlim)
Gets a member from a slim member.
Declaration
public MemberInfo GetMember(MemberInfoSlim memberSlim)
  Parameters
| Type | Name | Description | 
|---|---|---|
| MemberInfoSlim | memberSlim | The slim member.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Reflection.MemberInfo | The member represented by the slim member.  | 
      
GetMethod(MethodInfoSlim)
Gets a method from a slim method.
Declaration
public MethodInfo GetMethod(MethodInfoSlim methodSlim)
  Parameters
| Type | Name | Description | 
|---|---|---|
| MethodInfoSlim | methodSlim | The slim method.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Reflection.MethodInfo | The method represented by the slim method.  | 
      
GetProperty(PropertyInfoSlim)
Gets a property from a slim property.
Declaration
public PropertyInfo GetProperty(PropertyInfoSlim propertySlim)
  Parameters
| Type | Name | Description | 
|---|---|---|
| PropertyInfoSlim | propertySlim | The slim property.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Reflection.PropertyInfo | The property represented by the slim property.  | 
      
GetPropertyCore(PropertyInfoSlim, Type, Type, Type[])
Resolves a property on a CLR type.
Declaration
protected virtual PropertyInfo GetPropertyCore(PropertyInfoSlim propertySlim, Type declaringType, Type propertyType, Type[] indexParameterTypes)
  Parameters
| Type | Name | Description | 
|---|---|---|
| PropertyInfoSlim | propertySlim | The slim property.  | 
      
| System.Type | declaringType | The declaring CLR type.  | 
      
| System.Type | propertyType | The property CLR type.  | 
      
| System.Type[] | indexParameterTypes | The index parameter CLR types.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Reflection.PropertyInfo | The property from the declaring type.  | 
      
GetSimpleMethodCore(SimpleMethodInfoSlim, Type, Type[], Type)
Gets a method on a CLR type.
Declaration
protected virtual MethodInfo GetSimpleMethodCore(SimpleMethodInfoSlim methodSlim, Type declaringType, Type[] parameterTypes, Type returnType)
  Parameters
| Type | Name | Description | 
|---|---|---|
| SimpleMethodInfoSlim | methodSlim | The slim method.  | 
      
| System.Type | declaringType | The declaring CLR type.  | 
      
| System.Type[] | parameterTypes | The parameter CLR types.  | 
      
| System.Type | returnType | The return CLR type.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Reflection.MethodInfo | The method on the declaring type.  | 
      
MapType(TypeSlim, Type)
Manually adds a mapping from a slim type to a CLR type.
Declaration
public void MapType(TypeSlim typeSlim, Type type)
  Parameters
| Type | Name | Description | 
|---|---|---|
| TypeSlim | typeSlim | The slim type.  | 
      
| System.Type | type | The CLR type.  |