[CSHARP-1232] Add an implicit conversion from FieldDefinition<TDocument, TField> to FieldDefinition<TDocument> Created: 06/Apr/15  Updated: 20/Jan/16  Resolved: 01/May/15

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

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


 Description   

Currently, anyone who wants to staticly store a field definition needs to store 2 copies because differnet versions are used in different places. Having an implicit conversion from one to the other will allow for only one to need to be stored.

Also, look into doing this for the other XXXDefinition classes.



 Comments   
Comment by Githook User [ 01/May/15 ]

Author:

{u'username': u'craiggwilson', u'name': u'Craig Wilson', u'email': u'craiggwilson@gmail.com'}

Message: CSHARP-1232: Added implicit conversion from 2 generic argument field definition to 1 argument field definition.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/e3dd27ef26f5380036b0f56157255e7184fc3f74

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