Esempio n. 1
0
        public string GetPropValue(string propertyName)
        {
            //! Via reflection get the current value of a sPropName on _ObjectInstance.
            object o = PropertyUtil.GetPropertyValue(_ObjectInstance, propertyName);

            if (o == null)
            {
                return("");
            }
            return(o.ToString());
        }
Esempio n. 2
0
 public static object GetPropertyValue(this object thisObject, string propertyName)
 {
     // Get a property via reflection from some acquired object. similar to 'dynamic' keyword.
     // Just return null if property does not exist.
     return(PropertyUtil.GetPropertyValue(thisObject, propertyName));
 }