Ejemplo n.º 1
0
 public void removeCheckType(checkType tp)
 {
     if (checkTypes.Contains(tp))
     {
         checkTypes.Remove(tp);
     }
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
0
 public void addCheckType(checkType tp)
 {
     checkTypes.Add(tp);
 }
Ejemplo n.º 4
0
 public StuExtra(subExtra subE, string value)
 {
     UUID        = subE.UUID;
     this.name   = subE.name;
     this.result = subE[value];
 }