Class ExpressionEntityTypeAnonymizer
Expression tree visitor to substitute occurrences of user-defined entity types for anonymous types.
Inherited Members
Namespace: Nuqleon.DataModel.CompilerServices
Assembly: Nuqleon.DataModel.CompilerServices.dll
Syntax
public sealed class ExpressionEntityTypeAnonymizer : ExpressionEntityTypeSubstitutor
Constructors
ExpressionEntityTypeAnonymizer()
Creates a new entity type substitutor using anonymous types.
Declaration
public ExpressionEntityTypeAnonymizer()
Methods
DefineType(RuntimeCompiler, TypeBuilder, IEnumerable<KeyValuePair<String, Type>>)
Define a type using a runtime compiler instance, a type builder, and a set of properties.
Declaration
protected override void DefineType(RuntimeCompiler rtc, TypeBuilder builder, IEnumerable<KeyValuePair<string, Type>> properties)
Parameters
Type | Name | Description |
---|---|---|
RuntimeCompiler | rtc | The runtime compiler. |
System.Reflection.Emit.TypeBuilder | builder | The type builder to use for the type. |
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, System.Type>> | properties | The properties to add to the type. |
Overrides
GetTypeBuilder(RuntimeCompiler)
Gets a type builder to later use to define a type.
Declaration
protected override TypeBuilder GetTypeBuilder(RuntimeCompiler rtc)
Parameters
Type | Name | Description |
---|---|---|
RuntimeCompiler | rtc | The runtime compiler to get the type builder from. |
Returns
Type | Description |
---|---|
System.Reflection.Emit.TypeBuilder | The type builder. |