Table of Contents

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 XPClassInfo
info MemberInfo
valueParent XPMemberInfo
isReadOnly bool

Properties

CanUseFastAccessors

protected virtual bool CanUseFastAccessors { get; }

Property Value

bool

Info

protected abstract MemberInfo Info { get; }

Property Value

MemberInfo

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

string

A string value which specifies the member’s name.

Methods

CreateAccessorInternal()

protected virtual IFieldAccessor CreateAccessorInternal()

Returns

IFieldAccessor

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 object
targetMember XPMemberInfo

Returns

object

GetDefaultMappingField()

protected override string GetDefaultMappingField()

Returns

string

GetModified(object)

Checks whether or not the member is modified.

public override bool GetModified(object theObject)

Parameters

theObject object

An 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 object

An 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 object

An 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

Expression

ResetModified(object)

Resets the member’s modification.

public override void ResetModified(object theObject)

Parameters

theObject object

An object whose member is reset.

SetModified(object, object)

Marks the member as modified.

public override void SetModified(object theObject, object oldValue)

Parameters

theObject object

An object whose member is modified.

oldValue object

An 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)

Parameters

theObject object

An object whose property value will be set.

theValue object

An object which represents the new value for this property.