[CSHARP-835] Implement TypeConverter for ObjectId Created: 02/Oct/13  Updated: 08/Jun/22

Status: Backlog
Project: C# Driver
Component/s: BSON
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Craig Wilson Assignee: Unassigned
Resolution: Unresolved Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to CSHARP-834 Implementations of IConvertible.ToTyp... Closed

 Description   

ObjectId currently requires manual conversion for any libraries that need to change one to a string. For example, OData, WebApi, MVC, Json.NET all use TypeConverters. Therefore, a simple implementation that converts to and from a string would go a long way.



 Comments   
Comment by Fred Morel [ 08/Jun/22 ]

I ended up writing my own implementation as well as a `JsonConverter` implementation. For 

ObjectId

 and 

ObjectId?

Comment by Jeffrey Yemin [ 13/Oct/16 ]

Never mind... I did it.

Generated at Wed Feb 07 21:37:58 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.