public object GetValue()
        {
            if (!_resultProperty.IsAccessible(_resultObject))
            {
                return(null);
            }

            try
            {
                return(_resultObject.GetProperty(_resultProperty));
            }
            catch (BusinessObjectPropertyAccessException)
            {
                return(null);
            }
        }
Пример #2
0
        public static bool IsAccessible(this IBusinessObjectProperty property, [CanBeNull] IBusinessObjectClass objectClass, [CanBeNull] IBusinessObject obj)
        {
            ArgumentUtility.CheckNotNull("property", property);

            return(property.IsAccessible(obj));
        }