Пример #1
0
 public Object GetBeanPropInternal(Object o, int index)
 {
     try
     {
         Object value = _field.GetValue(o);
         return(EnumerableFastPropertyGetter.GetEnumerable(value, index));
     }
     catch (InvalidCastException e)
     {
         throw PropertyUtility.GetMismatchException(_field, o, e);
     }
     catch (PropertyAccessException)
     {
         throw;
     }
     catch (Exception e)
     {
         throw new PropertyAccessException(e);
     }
 }
 private Object GetBeanPropInternal(Object o, int index)
 {
     try
     {
         Object value = _method.Invoke(o, null);
         return(EnumerableFastPropertyGetter.GetEnumerable(value, index));
     }
     catch (InvalidCastException e)
     {
         throw PropertyUtility.GetMismatchException(_method, o, e);
     }
     catch (PropertyAccessException)
     {
         throw;
     }
     catch (Exception e)
     {
         throw new PropertyAccessException(e);
     }
 }