[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: |
|
||||||||
| 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
and
| ||
| Comment by Jeffrey Yemin [ 13/Oct/16 ] | ||
|
Never mind... I did it. |