-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 1.4
-
Component/s: None
-
Environment:.net framework 2.0
public class TestInfo
{
public string Id
public Object Items { get; set; }
}
TestInfo testInfo = new TestInfo();
testInfo.Id = ObjectId.GenerateNewId().ToString();
testInfo.Items = new List<string>()
;
collection.Save<TestInfo>(testInfo);
var item = collection.FindOneById(testInfo.Id);
Exception:
An error occurred while deserializing the Items property of class Test.Program+TestInfo: Cannot deserialize System.Object from BsonType Array.
- related to
-
CSHARP-263 Deserialization of array that was serialized with nominalType object fails due to lack of type information
- Closed