我有以下類型鮮明列表元素
CoordinateCollection pointCoordinates = new CoordinateCollection();
列表集合加起來型載體的名單。 我想從列表中刪除重複項
我想這樣
pointCoordinates = pointCoordinates.Distinct();
它給了我一個錯誤
cannot implicitly convert type 'system.collections.generic.ienumerable<SharpKML.Base.Vector> to SharpKML.Dom.CoordinateCollection
請幫我解決這個。我想唯一的一組記錄
是您清除或分配時引起的錯誤 –
再次讀取錯誤消息。我認爲這很清楚。使用另一個變量來分配結果。 –