ObjectMember Class

NReco.PivotData Class Library Documentation
Provides fast access to the object's public member (property, field or indexer) by name.
Inheritance Hierarchy

SystemObject
  NReco.PivotDataObjectMember

Namespace:  NReco.PivotData
Assembly:  NReco.PivotData (in NReco.PivotData.dll) Version: 1.3.6.0 (1.3.6.0)
Syntax

public class ObjectMember

The ObjectMember type exposes the following members.

Constructors

  NameDescription
Public methodObjectMember
Initializes a new instance of the ObjectMember class
Top
Methods

  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodGetValue
Returns the member value (property, field or indexer) of the specified object.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top
Remarks

ObjectMember instance uses Expression-based approach for accessing any object properties in the fastest way:
object arr = new [] { "A", "B", "C" };
var objMember = new ObjectMember();
object arrLen = objMember.GetValue(arr, "Length"); // arrLen=3
ObjectMember is useful for grouping typed lists with ProcessData(IEnumerable, FuncObject, String, Object).
See Also

Reference