Skip to main content
.NET Framework 4.5.2+

IMemberInfo.GetValue(Object) Method

Retrieves the member’s value.

Namespace: DevExpress.ExpressApp.DC

Assembly: DevExpress.ExpressApp.v22.1.dll

Declaration

object GetValue(
    object obj
)

Parameters

Name Type Description
obj Object

The object whose property value will be returned.

Returns

Type Description
Object

An object that is the member’s value.

Remarks

You can pass an object that is an actual member value, or an IObjectRecord object.

ITypeInfo typeInfo = objectSpace.TypesInfo.FindTypeInfo(objectSpace.GetObjectType(objectRecord));
Object val = typeInfo.FindMember(propertyName).GetValue(objectRecord);

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetValue(Object) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also