Beispiel #1
0
        public object GetValue(T item)
        {
            if (_propertyInfo != null)
            {
                return(_propertyInfo.GetValue(item));
            }

            return(_dynamicProperty.GetValue(item));
        }
        public object GetValue(T item)
        {
            if (_propertyInfo != null)
            {
#if NET4
                return(_propertyInfo.GetValue(item, null));
#else
                return(_propertyInfo.GetValue(item));
#endif
            }

            return(_dynamicProperty.GetValue(item));
        }