DCSIMG
Serializable Dictionary - Manu Cohen-Yashar's Blog

Manu Cohen-Yashar's Blog

Serializable Dictionary

Serializable Dictionary

I wanted to use a dictionary<T>  to create a MSMQ message but I found that a dictionary is not serializable. I spoke to a good friend “Adar Wesley” and he gave me the code of a Serializable Dictionary<T> he wrote. So here it is.

Enjoy.

Download:

SerializableDictionary

 

Comments

AdarWesley said:

I here by grant you permission to publish this ;-)

---

Adar Wesley

# February 24, 2008 2:56 PM

mafutrct said:

in void IXmlSerializable.ReadXml(System.Xml.XmlReader reader):

i think it should be:

if (reader.IsEmptyElement) {

reader.Read (); // <-- missing

return;

}

# February 20, 2009 1:43 PM
Leave a Comment

(required) 

(required) 

(optional)

(required) 


Enter the numbers above: