Table of Contents

Class ReflectionDictionary

Namespace
DevExpress.Xpo.Metadata
Assembly
DevExpress.Xpo.v24.1.dll

Implements the XPDictionary class. Provides metadata information accumulated via .NET Reflection (based on class structure and custom attributes).

public class ReflectionDictionary : XPDictionary, IXPDictionaryProvider
Inheritance
ReflectionDictionary
Implements
Derived
Inherited Members

Constructors

ReflectionDictionary()

Initializes a new instance of the ReflectionDictionary class.

public ReflectionDictionary()

Fields

CanGetClassInfoByTypeGlobalHandler

This member supports the internal infrastructure and is not intended to be used directly from your code.

public static EventHandler<CanGetClassInfoByTypeEventArgs> CanGetClassInfoByTypeGlobalHandler

Field Value

EventHandler<CanGetClassInfoByTypeEventArgs>

CanGetClassInfoByTypeHandler

This member supports the internal infrastructure and is not intended to be used directly from your code.

public EventHandler<CanGetClassInfoByTypeEventArgs> CanGetClassInfoByTypeHandler

Field Value

EventHandler<CanGetClassInfoByTypeEventArgs>

ResolveClassInfoByTypeGlobalHandler

This member supports the internal infrastructure and is not intended to be used directly from your code.

public static EventHandler<ResolveClassInfoByTypeEventArgs> ResolveClassInfoByTypeGlobalHandler

Field Value

EventHandler<ResolveClassInfoByTypeEventArgs>

ResolveClassInfoByTypeHandler

This member supports the internal infrastructure and is not intended to be used directly from your code.

public EventHandler<ResolveClassInfoByTypeEventArgs> ResolveClassInfoByTypeHandler

Field Value

EventHandler<ResolveClassInfoByTypeEventArgs>

classesByName

protected Dictionary<string, XPClassInfo> classesByName

Field Value

Dictionary<string, XPClassInfo>

classesByType

protected Dictionary<Type, XPClassInfo> classesByType

Field Value

Dictionary<Type, XPClassInfo>

Properties

Classes

Gets a collection of the XPClassInfo objects that are supplied by the current ReflectionDictionary instance.

public override ICollection Classes { get; }

Property Value

ICollection

A collection of the XPClassInfo objects.

Methods

AddClassInfoCore(XPClassInfo)

protected override void AddClassInfoCore(XPClassInfo info)

Parameters

info XPClassInfo

CanGetClassInfoByType(Type)

Indicates whether the dictionary can return metadata information for the specified type.

public override bool CanGetClassInfoByType(Type classType)

Parameters

classType Type

The class type.

Returns

bool

true if the dictionary can return metadata information for the specified type; otherwise, false.

CreateClassInfo(Type)

protected virtual XPClassInfo CreateClassInfo(Type classType)

Parameters

classType Type

Returns

XPClassInfo

DefaultCanGetClassInfoByType(Type)

Indicates whether the dictionary can return metadata information for the specified type.

public static bool DefaultCanGetClassInfoByType(Type classType)

Parameters

classType Type

The class type.

Returns

bool

true if the dictionary can return metadata information for the specified type; otherwise, false.

DropDescendantsCache(XPClassInfo)

protected override void DropDescendantsCache(XPClassInfo changedClassInfo)

Parameters

changedClassInfo XPClassInfo

HasDescendantsCore(XPClassInfo)

protected override bool HasDescendantsCore(XPClassInfo classInfo)

Parameters

classInfo XPClassInfo

Returns

bool

QueryClassInfo(string, string)

Returns the persistent class metadata information for the specified assembly name and class name.

public override XPClassInfo QueryClassInfo(string assemblyName, string className)

Parameters

assemblyName string

The assembly name.

className string

The full name of the class.

Returns

XPClassInfo

The XPClassInfo object for the specified class or null reference (Nothing in Visual Basic) when the metadata information cannot be obtained.

QueryClassInfo(Type)

Returns the persistent class metadata information for the specified class type.

public override XPClassInfo QueryClassInfo(Type classType)

Parameters

classType Type

The class type.

Returns

XPClassInfo

The XPClassInfo object for the specified class type or null reference (Nothing in Visual Basic) when the metadata information for the corresponding class cannot be obtained.

ResolveClassInfoByName(string, string)

protected virtual XPClassInfo ResolveClassInfoByName(string assemblyName, string typeName)

Parameters

assemblyName string
typeName string

Returns

XPClassInfo

ResolveClassInfoByType(Type)

protected virtual XPClassInfo ResolveClassInfoByType(Type classType)

Parameters

classType Type

Returns

XPClassInfo