Class DataModelTypeSpace
Type space to convert CLR reflection objects into the corresponding slim representation of reflection objects with data model awareness.
Inherited Members
Namespace: Nuqleon.DataModel.CompilerServices.Bonsai
Assembly: Nuqleon.DataModel.CompilerServices.dll
Syntax
public class DataModelTypeSpace : TypeSpace
Constructors
DataModelTypeSpace()
Creates the type space.
Declaration
public DataModelTypeSpace()
Properties
TypeConverter
Gets the converter used to create slim representations of types.
Declaration
protected override TypeToTypeSlimConverter TypeConverter { get; }
Property Value
Type | Description |
---|---|
TypeToTypeSlimConverter |
Overrides
Methods
GetConstructorCore(ConstructorInfo, TypeSlim, ReadOnlyCollection<TypeSlim>)
Creates a slim representation of a type constructor.
Declaration
protected override ConstructorInfoSlim GetConstructorCore(ConstructorInfo originalConstructor, TypeSlim declaringTypeSlim, ReadOnlyCollection<TypeSlim> parameterTypeSlims)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.ConstructorInfo | originalConstructor | The original constructor. |
TypeSlim | declaringTypeSlim | The slim representation of the declaring type. |
System.Collections.ObjectModel.ReadOnlyCollection<TypeSlim> | parameterTypeSlims | The slim representations of the constructor parameter types. |
Returns
Type | Description |
---|---|
ConstructorInfoSlim | The slim representation of the constructor. |
Overrides
GetFieldCore(FieldInfo, TypeSlim, TypeSlim)
Creates a slim representation of a type field.
Declaration
protected override FieldInfoSlim GetFieldCore(FieldInfo originalField, TypeSlim declaringTypeSlim, TypeSlim fieldTypeSlim)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.FieldInfo | originalField | The original field. |
TypeSlim | declaringTypeSlim | The slim representation of the declaring type. |
TypeSlim | fieldTypeSlim | The slim representation of the field type. |
Returns
Type | Description |
---|---|
FieldInfoSlim | The slim representation of the field. |
Overrides
GetPropertyCore(PropertyInfo, TypeSlim, TypeSlim, ReadOnlyCollection<TypeSlim>)
Creates a slim representation of a type property.
Declaration
protected override PropertyInfoSlim GetPropertyCore(PropertyInfo originalProperty, TypeSlim declaringTypeSlim, TypeSlim propertyTypeSlim, ReadOnlyCollection<TypeSlim> indexParameterTypeSlims)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.PropertyInfo | originalProperty | The original property. |
TypeSlim | declaringTypeSlim | The slim representation of the declaring type. |
TypeSlim | propertyTypeSlim | The slim representation of the property type. |
System.Collections.ObjectModel.ReadOnlyCollection<TypeSlim> | indexParameterTypeSlims | The slim representations of the index parameter types. |
Returns
Type | Description |
---|---|
PropertyInfoSlim | The slim representation of the property. |