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
CanGetClassInfoByTypeHandler
This member supports the internal infrastructure and is not intended to be used directly from your code.
public EventHandler<CanGetClassInfoByTypeEventArgs> CanGetClassInfoByTypeHandler
Field Value
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
ResolveClassInfoByTypeHandler
This member supports the internal infrastructure and is not intended to be used directly from your code.
public EventHandler<ResolveClassInfoByTypeEventArgs> ResolveClassInfoByTypeHandler
Field Value
classesByName
protected Dictionary<string, XPClassInfo> classesByName
Field Value
classesByType
protected Dictionary<Type, XPClassInfo> classesByType
Field Value
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
TypeThe 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
DefaultCanGetClassInfoByType(Type)
Indicates whether the dictionary can return metadata information for the specified type.
public static bool DefaultCanGetClassInfoByType(Type classType)
Parameters
classType
TypeThe 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
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
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
TypeThe 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
Returns
ResolveClassInfoByType(Type)
protected virtual XPClassInfo ResolveClassInfoByType(Type classType)
Parameters
classType
Type