public static string DisplayRangeListText(NumberRangeList Ranges) { string str2 = ""; str2 = DisplayRangeText(Ranges[0]); int num2 = Ranges.Count - 1; for (int i = 1; i <= num2; i++) { NumberRange range = Ranges[i]; str2 = str2 + ", " + DisplayRangeText(Ranges[i]); range = null; } return(str2); }
public static string DisplayRangeText(NumberRange Range) { string str2 = ""; NumberRange range = Range; if (range.First == range.Last) { str2 = "&" + DisplayCodeText(range.First); } else if ((range.Last - range.First) == 1) { str2 = "&" + DisplayCodeText(range.First) + ", &" + DisplayCodeText(range.Last); } else { str2 = "&" + DisplayCodeText(range.First) + " .. &" + DisplayCodeText(range.Last); } range = null; return(str2); }
public int Add(NumberRange Range) { return(base.Add(Range)); }