Example #1
0
        public static PropertyData GetPropertyData <TPageData>(this TPageData page, PropertyInfo propertyInfo)
            where TPageData : PageData
        {
            var name = PropertyName.GetInternal(propertyInfo);

            return(page.Property[name]);
        }
Example #2
0
        public static PropertyData GetPropertyData <TPageData, TValue>(this TPageData page, Expression <Func <TPageData, TValue> > expression)
            where TPageData : PageData
        {
            var name = PropertyName.GetInternal(expression);

            return(page.Property[name]);
        }