Beispiel #1
0
 private static void ValidateRestrictionValue(PropValue value)
 {
     if (value.Value == null)
     {
         throw new InvalidRuleException("Value stored in restriction is null");
     }
     RuleUtil.CheckValueType(value.Value, value.PropTag);
 }
 public object this[PropTag tag]
 {
     get
     {
         tag = RuleUtil.NormalizeTag(tag);
         object obj = this.CalculatePropertyValue(tag);
         if (obj == null)
         {
             obj = this.GetPropertyValue(tag);
         }
         RuleUtil.CheckValueType(obj, tag);
         return(obj);
     }
 }