Click here to Skip to main content
15,921,351 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
is it possible to deserialize a dictionary in a single step?
C#
private XElement Serializedictionary(IEnumerable <dictionary><guid,command>>dictionary)
    {
       var serializedictionary = new XElement("Dictionary",
                                 new XElement("dictionary" ,debugClass.sortedCommand)
                                    );
        return serializedictionary;
    }

sorted command is the dictionary that i want to deserialize
Posted
Updated 12-Aug-15 20:46pm
v4
Comments
Sergey Alexandrovich Kryukov 13-Aug-15 1:53am    
It depends on what do you consider a "single step", and a dictionary... :-)
Besides, as you are talking only about deserialization, not serialization, you should have told us how did you serialize it.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900