[CSHARP-291] ObjectId implicit string conversion Created: 28/Jul/11  Updated: 19/Oct/16  Resolved: 05/Aug/11

Status: Closed
Project: C# Driver
Component/s: Feature Request
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Trivial - P5
Reporter: Ahmed Zulkamal Assignee: Robert Stam
Resolution: Done Votes: 0
Labels: bson, driver
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible

 Description   

Would be nice to not have to type in ToString() for ObjectIds



 Comments   
Comment by Robert Stam [ 05/Aug/11 ]

Implicit conversions to string seem dangerous. While it might save typing ToString now and then it would also compromise type safety by allowing you to pass an ObjectId to any function wanting a string, whether it made sense or not.

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