Hi,
I have an object which I would be adding to MongoDB, which has Rhino Geometry as properties.
public class MyObject
{
public Guid Id { get; set; }
public string Name { get; set; }
public Brep Brep { get; set; }
public Plane Plane { get; set; }
public MyObject()
{
}
}
But BsonSerializer fails to deserialize Rhino.Geometry.Plane as it does not have a no-argument constructor.
Is there a way to achieve this?
(Current workaround is, I am storing the Plane as byte array, and then later converting it back)
public class MyObject
{
public Guid Id { get; set; }
public string Name { get; set; }
public Brep Brep { get; set; }
public byte[] Plane { get; set; }
public MyObject()
{
}
}