a problem come when I use "Deserialize"

14 views
Skip to first unread message

4516...@qq.com

unread,
Jun 6, 2012, 5:41:43 AM6/6/12
to mongodb-csharp
I'm sorry for my poor English...
there is a class "Element" with a dictionary "Properties" in it
now I do a group

Group(query, "RefNo", initial, reduce, null)

so "Element" change to "BsonDocument" and I use

Element e = BsonSerializer.Deserialize<Element>(doc);

to get back to "Element"
but,this time the dictionary in class disappearanced.
could anyone help me to solve the problem in c#,thanks a lot!

Robert Stam

unread,
Jun 6, 2012, 10:41:09 AM6/6/12
to mongodb...@googlegroups.com
Can you provide more information? Preferably enough source code and sample data to reproduce what you are seeing.

What is the type of your Properties member?
Reply all
Reply to author
Forward
0 new messages