[CSHARP-1228] Expressions used to resolve field names for enum members do not work Created: 02/Apr/15 Updated: 02/Apr/16 Resolved: 04/Apr/15 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | Serialization |
| Affects Version/s: | 2.0 |
| Fix Version/s: | 2.0.1, 2.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Nick Judson | Assignee: | Craig Wilson |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Win8.1 |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
| Comments |
| Comment by Githook User [ 04/Apr/15 ] |
|
Author: {u'username': u'craiggwilson', u'name': u'Craig Wilson', u'email': u'craiggwilson@gmail.com'}Message: |
| Comment by Githook User [ 03/Apr/15 ] |
|
Author: {u'username': u'craiggwilson', u'name': u'Craig Wilson', u'email': u'craiggwilson@gmail.com'}Message: |
| Comment by Craig Wilson [ 02/Apr/15 ] |
|
Thanks Nick. I can repro this in a test. For now, a solid work-around is to use the member name as a string instead of a lambda expression. Even if you have used a different element name either via code or using the BsonElement attribute, it will still translate correctly. We've scheduled the fix for this to be 2.0.1. Craig |
| Comment by Nick Judson [ 02/Apr/15 ] |
|
Repro. |
| Comment by Nick Judson [ 02/Apr/15 ] |
|
Just building out a repro. |