Table of Contents

Class DynamicTypeInfo

Namespace
Breeze.Core
Assembly
Breeze.Core.dll

Internal use only.

[DataContract]
public class DynamicTypeInfo
Inheritance
DynamicTypeInfo
Inherited Members

Fields

BaseDynamicPrefix

For internal use only

public const string BaseDynamicPrefix = "_IB_"

Field Value

string

CSharpAnonPrefix

For internal use only

public const string CSharpAnonPrefix = "<>f__Anon"

Field Value

string

CSharpDynamicPrefix

For internal use only

public const string CSharpDynamicPrefix = "_IB_f__Anon"

Field Value

string

DynamicAssemblyNameSuffix

Suffix added to all dynamic assemblies constructed here.

public const string DynamicAssemblyNameSuffix = "_IdeaBlade"

Field Value

string

VBAnonPrefix

For internal use only

public const string VBAnonPrefix = "VB$"

Field Value

string

VBDynamicPrefix

For internal use only

public const string VBDynamicPrefix = "$IBVB"

Field Value

string

Properties

DynamicConstructor

For internal use only.

public ConstructorInfo DynamicConstructor { get; }

Property Value

ConstructorInfo

DynamicEmptyConstructor

For internal use only.

public ConstructorInfo DynamicEmptyConstructor { get; }

Property Value

ConstructorInfo

DynamicType

For internal use only.

public Type DynamicType { get; }

Property Value

Type

DynamicTypeName

For internal use only.

[DataMember]
public string DynamicTypeName { get; }

Property Value

string

OriginalType

For internal use only.

public Type OriginalType { get; set; }

Property Value

Type

Properties

For internal use only.

public ReadOnlyCollection<PropertyInfo> Properties { get; }

Property Value

ReadOnlyCollection<PropertyInfo>

PropertyNameWrappers

For internal use only.

[DataMember]
public List<string> PropertyNameWrappers { get; set; }

Property Value

List<string>

PropertyNames

For internal use only.

public ReadOnlyCollection<string> PropertyNames { get; }

Property Value

ReadOnlyCollection<string>

PropertyTypes

For internal use only.

public ReadOnlyCollection<Type> PropertyTypes { get; }

Property Value

ReadOnlyCollection<Type>

TypeName

For internal use only. The anonymous type's name; null for types built from a property list.

[DataMember]
public string? TypeName { get; protected set; }

Property Value

string

Methods

Equals(object?)

For internal use only.

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

FindByAssemblyName(string)

Return the DynamicTypeInfo for the specified assembly name containing a dynamic type.

public static DynamicTypeInfo? FindByAssemblyName(string pAssemblyName)

Parameters

pAssemblyName string

Returns

DynamicTypeInfo

FindByDynamicTypeName(string)

Return the DynamicTypeInfo for the specified dynamic type name.

public static DynamicTypeInfo? FindByDynamicTypeName(string name)

Parameters

name string

Returns

DynamicTypeInfo

FindOrCreate(IEnumerable<string>, IEnumerable<Type>)

Either finds a dynamic type that matches the specified propertyNames and propertyTypes or creates a new DynamicType that does.

public static DynamicTypeInfo FindOrCreate(IEnumerable<string> propertyNames, IEnumerable<Type> propertyTypes)

Parameters

propertyNames IEnumerable<string>
propertyTypes IEnumerable<Type>

Returns

DynamicTypeInfo

FindOrCreate(Type)

Either finds a dynamic type that matches the specified anon or dynamic type or creates a new DynamicTypeInfo that does.

public static DynamicTypeInfo? FindOrCreate(Type anonOrDynType)

Parameters

anonOrDynType Type

Returns

DynamicTypeInfo

GetHashCode()

For internal use only.

public override int GetHashCode()

Returns

int

IsDynamicType(Type)

For internal use only.

public static bool IsDynamicType(Type type)

Parameters

type Type

Returns

bool