I have a class with a property
public List<Point> RouteWayPoints { get; set; }
Point - is a class of namespace System.Windows
When I Save this object into the Mongo Db - it works. But, when I try to get it from db with builders filter - i have an exception An error occurred while deserializing the RouteWayPoints property of class BusLaneRoutes: Value class System.Windows.Point cannot be deserialized.
private IMongoCollection<BusLaneRoutes> _busLaneRoutesCollection;
var filter = Builders<BusLaneRoutes>.Filter.Eq("RouteId", routeId);
var result = _busLaneRoutesCollection.Find(filter).FirstOrDefault();