TheCommonUtils..::..GetPropValue Method
Returns the value of a property.
Namespace:
nsCDEngine.BaseClassesAssembly: C-DEngine (in C-DEngine.dll)
Remarks
(1) On a static snapshot of a thing property bag, or
(2) On the C# properties for a TheThing / ICDEThing object.
This code fragment demonstrates the first approach:
C#
TheThingStore tstore = TheThingStore.CloneFromTheThing(MyBaseThing, false); Object pPropValue1 = TheCommonUtils.GetPropValue(tstore, "SampleProperty");
C#
Object pPropValue2 = TheCommonUtils.GetPropValue(this, "SampleProperty");