static MetroDataBuilderOperation() { BuildStation(line1str, ref line1); BuildStation(line2str, ref line2); BuildStation(line3str, ref line3); TotalLine.AddRange(Line1); TotalLine.AddRange(Line2); TotalLine.AddRange(Line3); StationSet = new HashSet <Station>(TotalLine); SetLineNumber(Line1, 1, ref stationSet); SetLineNumber(Line2, 2, ref stationSet); SetLineNumber(Line3, 3, ref stationSet); LineSet.Add(Line1); LineSet.Add(Line2); LineSet.Add(Line3); TotalStation = StationSet.Count; }