Beispiel #1
0
 public override object Get(object onObject)
 {
     if (null == _getter)
     {
         _getter = AccessorFactory.GetterFor(_field);
     }
     try
     {
         return(_getter(onObject));
     }
     catch (FieldAccessException)
     {
         _getter = _field.GetValue;
         return(_getter(onObject));
     }
     catch (Exception e)
     {
         throw new Db4oException(e);
     }
 }