[CSHARP-1138] Add IndexOfName method to BsonDocument Created: 02/Dec/14  Updated: 02/Apr/15  Resolved: 02/Dec/14

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

Type: Improvement Priority: Major - P3
Reporter: Robert Stam Assignee: Robert Stam
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible

 Description   

Add a method called IndexOfName that can be used to find the position of an element in a BsonDocument.

For example:

var idIndex = document.IndexOfName("_id");



 Comments   
Comment by Githook User [ 02/Dec/14 ]

Author:

{u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}

Message: CSHARP-1138: Add IndexOfName method to BsonDocument.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/42666b2c03c1191d127676229ddec627126128a2

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