Class ReflectionMemberInfo
- Namespace
- DevExpress.Xpo.Metadata
- Assembly
- DevExpress.Xpo.v24.1.dll
Provides access to member metadata gathered via Reflection.
public abstract class ReflectionMemberInfo : XPMemberInfo, IFieldAccessor
- Inheritance
-
ReflectionMemberInfo
- Implements
- Derived
- Inherited Members
Constructors
ReflectionMemberInfo(XPClassInfo, MemberInfo, XPMemberInfo, bool)
protected ReflectionMemberInfo(XPClassInfo owner, MemberInfo info, XPMemberInfo valueParent, bool isReadOnly)
Parameters
owner
XPClassInfoinfo
MemberInfovalueParent
XPMemberInfoisReadOnly
bool
Properties
CanUseFastAccessors
protected virtual bool CanUseFastAccessors { get; }
Property Value
Info
protected abstract MemberInfo Info { get; }
Property Value
IsStruct
Gets whether the member represents a data structure.
public override bool IsStruct { get; }
Property Value
- bool
true if the member represents a data structure; otherwise, false.
Name
Gets the member’s name.
public override string Name { get; }
Property Value
Methods
CreateAccessorInternal()
protected virtual IFieldAccessor CreateAccessorInternal()
Returns
DropCache()
protected override void DropCache()
GetConst(object, XPMemberInfo)
This member supports the internal infrastructure and is not intended to be used directly from your code.
public override object GetConst(object target, XPMemberInfo targetMember)
Parameters
target
objecttargetMember
XPMemberInfo
Returns
GetDefaultMappingField()
protected override string GetDefaultMappingField()
Returns
GetModified(object)
Checks whether or not the member is modified.
public override bool GetModified(object theObject)
Parameters
theObject
objectAn object whose member is checked.
Returns
- bool
true, if the member is modified; otherwise, false.
GetOldValue(object)
Returns the old value of the member.
public override object GetOldValue(object theObject)
Parameters
theObject
objectAn object whose member value is returned.
Returns
- object
An object which is the old value of the member.
GetValue(object)
Returns the member’s value.
public override object GetValue(object theObject)
Parameters
theObject
objectAn object whose value will be returned.
Returns
- object
An object which represents the member’s value.
MakeGetExpression(Expression)
This method is intended for internal use.
public override Expression MakeGetExpression(Expression ownerExpression)
Parameters
ownerExpression
Expression
Returns
ResetModified(object)
Resets the member’s modification.
public override void ResetModified(object theObject)
Parameters
theObject
objectAn object whose member is reset.
SetModified(object, object)
Marks the member as modified.
public override void SetModified(object theObject, object oldValue)
Parameters
theObject
objectAn object whose member is modified.
oldValue
objectAn object that is the member’s old value.
SetValue(object, object)
Sets the property value for the given object.
public override void SetValue(object theObject, object theValue)