Пример #1
0
 public void removeCheckType(checkType tp)
 {
     if (checkTypes.Contains(tp))
     {
         checkTypes.Remove(tp);
     }
 }
Пример #2
0
        public checkType getMaxWeightCheckType()
        {
            checkType maxType = null;
            int       weight  = -1;

            foreach (checkType type in checkTypes)
            {
                if (type.weight > weight)
                {
                    maxType = type;
                    weight  = maxType.weight;
                }
            }
            if (weight == -1)
            {
                throw new NullReferenceException("找不到checkType");
            }
            return(maxType);
        }
Пример #3
0
 public void addCheckType(checkType tp)
 {
     checkTypes.Add(tp);
 }
Пример #4
0
 public StuExtra(subExtra subE, string value)
 {
     UUID        = subE.UUID;
     this.name   = subE.name;
     this.result = subE[value];
 }