Serializable Dictionary

23 בפברואר 2008

tags: , ,
2 comments

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


 

Add comment
facebook linkedin twitter email

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*

2 comments

  1. AdarWesley24 בפברואר 2008 ב 14:56

    I here by grant you permission to publish this 😉


    Adar Wesley

    Reply
  2. mafutrct20 בפברואר 2009 ב 13:43

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

    i think it should be:
    if (reader.IsEmptyElement) {
    reader.Read (); // <-- missing return; }

    Reply