-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Serialization
-
None
public class B { public int[] Data { get; private set; } public B(int[] data2) { Data = data2.ToArray(); } }
public class A { public int[] Data { get; } public A(int[] data2) { Data = data2.ToArray(); } }
B b = new B(new[] { 1, 20 }); A a = new A(new[] { 1, 20 });
Class B.ToJson results in "{ \"Data\" : [1, 20] }"
Class A.ToJson results in "{ }"
- duplicates
-
CSHARP-4374 Add SetPropertyGetter and SetPropertySetter methods to BsonMemberMap
- Backlog