kindly help me to correct my code it gives error
 Operator '==' cannot be applied to operands of type 'double' and 'ThinkGeo.MapSuite.Core.PointShape'   
 
vertex = poilayer.QueryTools.GetFeaturesIntersecting(check2.GetShape(), new string[0]);
            PointShape spoint = null;
            List<double> distances = new List<double>();
            double distance = 0;
            Dictionary<double, PointShape> final = new Dictionary<double, PointShape>();
            Collection<PointShape> collectionP = new Collection<PointShape>();
            foreach (Feature feature in vertex)
            {
                collectionP.Add(new PointShape(feature.WellKnownBinary));
            }
            
            foreach (PointShape p in collectionP)
            {
               distance = p.GetDistanceTo(goal,GeographyUnit.DecimalDegree, DistanceUnit.Meter);
                final.Add(distance, p);
                distances.Add(distance);
            }
                
                distances.Sort();
                for (int i = 0; i < collectionP.Count; i++)
                {
                    if (distances == final)
                    {
                        spoint = final;
                    }
                }