Exemple #1
0
 private void ExecDynamicPropertyValue(string propName, IDynamicPropertyValue dynProp)
 {
     object result;
     try
     {
         result = dynProp.Value();
     }
     catch (Exception e)
     {
         throw new KeenException(string.Format("Dynamic property \"{0}\" execution failure", propName), e);
     }
     if (result == null)
         throw new KeenException(string.Format("Dynamic property \"{0}\" execution returned null", propName));
 }
        private void ExecDynamicPropertyValue(string propName, IDynamicPropertyValue dynProp)
        {
            object result;

            try
            {
                result = dynProp.Value();
            }
            catch (Exception e)
            {
                throw new KeenException(string.Format("Dynamic property \"{0}\" execution failure", propName), e);
            }
            if (result == null)
            {
                throw new KeenException(string.Format("Dynamic property \"{0}\" execution returned null", propName));
            }
        }