Since CoordinateCollection
implements ICollection<Vector>
and Vector
overrides Equals
+ GethashCode
you can use Distinct
. But you need to use the constructor of CoordinateCollection
to create a new:
pointCoordinates = new CoordinateCollection(pointCoordinates.Distinct());
Note that i'm not familiar with SharpKML
, i have looked at it's source code.