C# Deserializing to a dictionary<string, Object>

Posted by lovecraft on Stack Overflow See other posts from Stack Overflow or by lovecraft
Published on 2013-10-24T03:50:08Z Indexed on 2013/10/24 3:53 UTC
Read the original article Hit count: 98

Filed under:
|
|
|

I'm writing a C#/VB application to connect to a database and do stuff with the data. I was given this code to take a serialized byte array and deserialized it, which is then written to a Dictionary The line of code is:

Dictionary<string, Object> DictionaryEmployee = (Dictionary<string, Object> Deserializer(byteArrayEmp));

The errors I'm getting are exceedingly unhelpful. "Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement" if I mouse over Object and "Using the generic type 'System.Collections.Generic.Dictionary' requires 2 type arguments if I mouse over Dictionary.

© Stack Overflow or respective owner

Related posts about c#

Related posts about vb.net