Details
-
Bug
-
Resolution: Cannot Reproduce
-
Minor - P4
-
None
-
2.4.1
-
.Net 4.5
Description
See:
MongoDB.Bson.Tests.Serialization.Conventions.ImmutableTypeClassMapConventionTests
Using test class:
private class TestClassD : TestClassC
{
public TestClassD(string a, string b) : base(a, b) { }
}
Will result in:
System.ArgumentOutOfRangeException
The memberInfo argument must be for class TestClassD, but was for class TestClassC.
Parameter name: memberInfo
when making the following call:
var classMap = BsonClassMap.LookupClassMap(typeof(TestClassD));
Attachments
Issue Links
- is duplicated by
-
CSHARP-2675 ArgumentOutOfRangeException when inserting document with subdocument that extends class without adding any properties
-
- Closed
-
-
CSHARP-2325 MongoDB C# Driver (2.7) and serialization issues
-
- Closed
-