expressappframework-devexpress-dot-expressapp-dot-dc-dot-imemberinfo-dot-getvalue-x28-system-dot-object-x29.md
Retrieves the member’s value.
Namespace : DevExpress.ExpressApp.DC
Assembly : DevExpress.ExpressApp.v25.2.dll
NuGet Package : DevExpress.ExpressApp
object GetValue(
object obj
)
Function GetValue(
obj As Object
) As Object
| Name | Type | Description |
|---|---|---|
| obj | Object |
The object whose property value will be returned.
|
| Type | Description |
|---|---|
| Object |
An object that is the member’s value.
|
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.
protected override RenderFragment CreateViewComponentCore(object dataContext) {
var propertyValue = MemberInfo.GetValue(dataContext);
var enumDescriptor = new EnumDescriptor(GetUnderlyingType());
See Also