GetPropertyValue() public static méthode

public static GetPropertyValue ( object o, string property ) : object
o object
property string
Résultat object
        protected virtual IEnumerable <TItem> FilterItems(IEnumerable <TItem> items)
        {
            if (FilterValue == null || (FilterValue as string) == "")
            {
                return(items);
            }

            var key = FilterValue.ToString();

            return(items.Where(x =>
            {
                var itemKey = ((dynamic)x)[FilterField] ?? ReflectionUtils.GetPropertyValue(x, FilterField);
                return itemKey != null && ((object)itemKey).ToString() == key;
            }));
        }
        protected virtual IEnumerable <TItem> CascadeItems(IEnumerable <TItem> items)
        {
            if (CascadeValue == null || (CascadeValue as string) == "")
            {
                if (!CascadeField.IsEmptyOrNull())
                {
                    return(new List <TItem>());
                }

                return(items);
            }

            var key = CascadeValue.ToString();

            return(items.Where(x =>
            {
                var itemKey = ((dynamic)x)[CascadeField] ?? ReflectionUtils.GetPropertyValue(x, CascadeField);
                return itemKey != null && ((object)itemKey).ToString() == key;
            }));
        }