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