XML Serializable Generic Dictionary

XML Serializable Generic Dictionary

For some reason, the generic Dictionary in .net 2.0 is not XML serializable.  The following code snippet is a xml serializable generic dictionary.  The dictionary is serialzable by implementing the IXmlSerializable interface. 

    using System;

    using System.Collections.Generic;

    using System.Text;

    using System.Xml.Serialization;

 

    [XmlRoot("dictionary")]

    public class SerializableDictionary<TKey, TValue>

        : Dictionary<TKey, TValue>, IXmlSerializable

    {

        #region IXmlSerializable Members

        public System.Xml.Schema.XmlSchema GetSchema()

        {

            return null;

        }

 

        public void ReadXml(System.Xml.XmlReader reader)

        {

            XmlSerializer keySerializer = new XmlSerializer(typeof(TKey));

            XmlSerializer valueSerializer = new XmlSerializer(typeof(TValue));

 

            bool wasEmpty = reader.IsEmptyElement;

            reader.Read();

 

            if (wasEmpty)

                return;

 

            while (reader.NodeType != System.Xml.XmlNodeType.EndElement)

            {

                reader.ReadStartElement("item");

 

                reader.ReadStartElement("key");

                TKey key = (TKey)keySerializer.Deserialize(reader);

                reader.ReadEndElement();

 

                reader.ReadStartElement("value");

                TValue value = (TValue)valueSerializer.Deserialize(reader);

                reader.ReadEndElement();

 

                this.Add(key, value);

 

                reader.ReadEndElement();

                reader.MoveToContent();

            }

            reader.ReadEndElement();

        }

 

        public void WriteXml(System.Xml.XmlWriter writer)

        {

            XmlSerializer keySerializer = new XmlSerializer(typeof(TKey));

            XmlSerializer valueSerializer = new XmlSerializer(typeof(TValue));

 

            foreach (TKey key in this.Keys)

            {

                writer.WriteStartElement("item");

 

                writer.WriteStartElement("key");

                keySerializer.Serialize(writer, key);

                writer.WriteEndElement();

 

                writer.WriteStartElement("value");

                TValue value = this[key];

                valueSerializer.Serialize(writer, value);

                writer.WriteEndElement();

 

                writer.WriteEndElement();

            }

        }

        #endregion

    }

Update: Fixed bug Justin pointed out by adding an extra reader.ReadEndElement() and by checking the IsEmptyElement property.

Published Wednesday, May 3, 2006 12:13 PM by pwelter34
Filed under:

Comments

# re: XML Serializable Generic Dictionary

Justin,

Do you have an example of what will cause it to fail? I've done a lot of testing but must have missed a use case. Thanks for the heads up.

~ Paul

Wednesday, May 3, 2006 2:44 PM by Paul Welter

# re: XML Serializable Generic Dictionary

Try and create a class with the SerializableAttribute and properties of type string, SerializableDictionary, string (in that order).

Make a webservice method that returns this class (with some content, meaning that string should have a value and the dirctionary should have at least two values).

Look the the XML the webservice generates and see it's OK.

Create a proxy to the webservice and call the webservice method you just created. The class you deserialize will have no value for the string that comes after the SerializableDictionary. (At least i think it won't). If i'm right and that issue does exist it's because you don't read the </dictionary> element at the end of ReadXml.

Wednesday, May 3, 2006 4:12 PM by Justin-Josef Angel

# re: XML Serializable Generic Dictionary

Ok, I fixed the issue. I got about 30 test cases for this now. Should be fairly solid. No guarantees of course. :)

~ Paul

Wednesday, May 3, 2006 4:20 PM by Paul Welter

# re: XML Serializable Generic Dictionary

Hi Paul,

Thanks for creating this, saved me time!

Ward

Monday, May 15, 2006 4:04 AM by Ward Bekker

# re: XML Serializable Generic Dictionary

This doesn't seem to work if you have a dictionary of custom types.

I.E. SerializableDictionary<int, MyObject>

Monday, May 15, 2006 4:08 PM by Brian

# re: XML Serializable Generic Dictionary

Brian,

It should work as long as MyObject is Xml Serializable. Try to serialize MyObject first to see if it works.

~ Paul

Monday, May 15, 2006 4:11 PM by Paul Welter

# re: XML Serializable Generic Dictionary

Nevermind! Ignore previous comment.

Monday, May 15, 2006 4:13 PM by Brian

# re: XML Serializable Generic Dictionary

Paul it does, my goof. Thanks this is very helpful.

Monday, May 15, 2006 4:14 PM by Brian

# re: XML Serializable Generic Dictionary

Thanks, Paul. This is really neat. I have a WebMethod returning a SerializableDictionary. This works fine when I view the service in a browser, & call the method there, but somehow does not work from a fat-client. In fact the generated wsdl does not show the response-type as above. So, am not sure whether i need to do anything special to get it in my proxy?

Monday, August 28, 2006 10:45 AM by Mark

# re: XML Serializable Generic Dictionary

Great piece of code. Thanks very much.

Monday, October 16, 2006 7:28 AM by Pablo

# re: XML Serializable Generic Dictionary

Hi, Thanks for the code... I appreciate your effort. I'm having some problems though.... 1. When I used the code as is, I got this error ... [SerializationException: Type 'Microsoft.Exchange.HostedServices.Clients.Utilities.SerializableDictionary`2[[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[Microsoft.Exchange.HostedServices.Clients.Membership.User, Microsoft.Exchange.HostedServices.Clients.Membership, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]]' in Assembly 'Microsoft.Exchange.HostedServices.Clients.Utilities, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' is not marked as serializable.] I marked it as [Serializable] and then I got the following error... {"The constructor to deserialize an object of type 'Microsoft.Exchange.HostedServices.Clients.Utilities.SerializableDictionary`2[System.String,Microsoft.Exchange.HostedServices.Clients.Membership.User]' was not found."} Then I added the following... protected SerializableDictionary(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } Now there are no errors, but the serialization/deserialization didn't seem to work at all. ReadXml and WriteXml methods were never called... BTW, I'm storing SerializableDictionary object in session as follows... HttpContext.Current.Session["UserAccounts"] = new SerializableDictionary(); ((SerializableDictionary)HttpContext.Current.Session["UserAccounts"])[emailAddress] = user; I'm stuck... Any help/feedback is appreciated. Thank you, Srivalli

Thursday, October 26, 2006 8:48 PM by Srivalli

# re: XML Serializable Generic Dictionary

A sample peice of C# code to exercise this in unit tests would appreciated.

Friday, October 27, 2006 6:31 AM by Tatworth

# re: XML Serializable Generic Dictionary

Just want to let you know that your little piece works wonders, and saved me quite a few headaches.

Thanks for sharing!

Sunday, July 15, 2007 6:55 PM by Balslev

# re: XML Serializable Generic Dictionary

Great snippet for sure! Thanks for sharing it with us! I am having a problem, however, I hoped I could get some help with:

I have a web service with a webmethod (where I expect a SerializableDictionary<string,string> as a parameter). When I generate the client-proxy the reference.cs auto-generated class shows that parameter to be System.Data.Dataset instead of MyNamespace.SerializableDictionary<string,string>. Any attempts thus far to generate the schema manually has lead to dead ends ...

How can I (other than manually) Specify the schema for serializing the SerializableDisctionary so that the client "sees" a serializable dictionary as the parameter to this web method?

Wednesday, September 12, 2007 10:03 AM by Gary

# re: XML Serializable Generic Dictionary

@Srivalli

You have to call the base constructor of the Dictionary class it's inheriting to get it to work. Adding the following constructors should get it to work exactly like the real Dictionary implementation:

       public SerializableDictionary()

           : base()

       {

       }

       public SerializableDictionary(IDictionary<TKey, TValue> dictionary)

           : base(dictionary)

       {

       }

       public SerializableDictionary(IEqualityComparer<TKey> comparer)

           : base(comparer)

       {

       }

       public SerializableDictionary(int capacity)

           : base(capacity)

       {

       }

       public SerializableDictionary(IDictionary<TKey, TValue> dictionary, IEqualityComparer<TKey> comparer)

           : base(dictionary, comparer)

       {

       }

       public SerializableDictionary(int capacity, IEqualityComparer<TKey> comparer)

           : base(capacity, comparer)

       {

       }

       protected SerializableDictionary(SerializationInfo info, StreamingContext context)

           : base(info, context)

       {

       }

Wednesday, September 19, 2007 8:58 PM by Thomas

# re: XML Serializable Generic Dictionary

Thanks for putting this out there.  Worked like a charm!

Friday, September 21, 2007 5:25 PM by Chad

# re: XML Serializable Generic Dictionary

Pingback from code-news.blogspot.com

Sunday, October 14, 2007 11:07 AM by Code

# re: XML Serializable Generic Dictionary

In my thin client i'm unable to properly parse the xml generated by this class. It treats the SerializedDictionary object as a DataSet, but the data set is empty.

Help!

Wednesday, January 9, 2008 4:56 PM by Tim

# re: XML Serializable Generic Dictionary

Important: readonly public variables and get-only properties cannot be serialized to XML!

Friday, January 18, 2008 11:52 AM by Alex

# re: XML Serializable Generic Dictionary

You are a genious!

Thanks a lot.

Wednesday, January 30, 2008 7:19 PM by Gleb

# re: XML Serializable Generic Dictionary

Im having a problem using this with TryGetValue (trying to ensure thread safety).

I have a SiteMapDataSource that i get a System.NullReferenceException on (CurrentNode==null).

       protected void menu_MenuItemDataBound(Object sender, MenuEventArgs e)

       {

          if (e.Item.Text == SiteMapDataSource 1.Provider.CurrentNode.Title)

           {

               e.Item.Text = "<strong>" + e.Item.Text + "</strong>";

           }

       }

But if i just skip the first if() everything works like a charm.

string tempCountryCode="uk";

bool contains;

           if (page.CountryCodeDictionary.TryGetValue(tempCountryCode.ToLower(), out contains))

           {

               if (SupportRoles.isAdmin(HttpContext.Current.Request.LogonUserIdentity) || page.CountryCodeDictionary[tempCountryCode])

               {

                   return true;

               }

               else

               {

                   return false;

               }

           }

           else

           {

               return false;

           }

Would be great if somebody knew what was causing this.

Friday, February 1, 2008 3:48 PM by Sowokie

# re: XML Serializable Generic Dictionary

This works great.  However, I am having one problem, when returning a Serializable dictionary from my web service, it is being treated as a DataSet.

Is there any way to have this serialize as a two dimensional array instead of a dataset.  This would also ensure that any type contained in the dictionary will have its type definition included in both the wsdl and the reference.cs web service proxy which is created on the client side.

Wednesday, February 13, 2008 4:19 PM by Jason

# re: XML Serializable Generic Dictionary

Thanks so much. Works perfectly for what I need. Nice to see it still being found so easily years later!

Thursday, April 3, 2008 11:29 AM by Greg Harris

# re: XML Serializable Generic Dictionary

why is :

SerializableDictionary<string, string> _testdict;

       [System.Runtime.Serialization.DataMember]

       public SerializableDictionary<string, string> TestCollection

       {

           get { return _testdict; }

           set { _testdict = value; }

       }

resulting in:

[System.Xml.Serialization.XmlElementAttribute(Order=0)]

       public System.Data.DataSet TestCollection

       {

           get

           {

               return this.testCollectionField;

           }

           set

           {

               this.testCollectionField = value;

           }

       }

dont want a DATASET !!! what can i change !!! (other then that this is a great class)

Monday, May 5, 2008 4:38 PM by Darin

# re: XML Serializable Generic Dictionary

It works wonders, thanks. It saved me a lot of time.

Tuesday, May 6, 2008 6:22 AM by BrightSoul

# re: XML Serializable Generic Dictionary

I am having the same problem mentioned in several other posts on this article, that being, the class deserializes as a DataSet for some unknown reason.

Strangely enough I have used it with success elsewhere. Am I missing something small but fundamental?

Tuesday, May 27, 2008 1:39 PM by Craig

# re: XML Serializable Generic Dictionary

Using in code

-------------------------

string txt;

       using (StringWriter string_writer = new StringWriter())

       {

           xml_serializer.Serialize(string_writer, sd);

           txt = string_writer.ToString();

           string_writer.Close();

       }

                      SerializableDictionary<string, string> _sd = new SerializableDictionary<string, string>();

               using (StringReader string_reader = new StringReader(txt))

               {

                   _sd = (SerializableDictionary<string, string>)xml_serializer.Deserialize(string_reader);

               }

Wednesday, May 28, 2008 10:55 AM by Surya

# re: XML Serializable Generic Dictionary

Thanks... works a treat.

Friday, May 30, 2008 8:29 AM by Graham

# re: XML Serializable Generic Dictionary

Thanks for the tip!

Wednesday, June 4, 2008 9:44 AM by Amer Gerzic

# re: XML Serializable Generic Dictionary

Really great work... thanks for sharing it!

Wednesday, June 11, 2008 3:30 PM by Samuel

# re: XML Serializable Generic Dictionary

This is not writing the dictionary, this is writing the contents of the dictionary. It should encapsulate the content in another element.

Tuesday, June 17, 2008 1:17 PM by Charlie

# re: XML Serializable Generic Dictionary

Thanks , Saved my alot of time.

Thursday, July 24, 2008 10:28 AM by shahzad

# re: XML Serializable Generic Dictionary

Absolutely great! Thanks for sharing, works great!

Sunday, August 10, 2008 3:47 PM by Reino Boonstra

# re: XML Serializable Generic Dictionary

To be able to deserialize the dictionary with a binary formatter add constructor:

protected XmlDictionary(SerializationInfo info, StreamingContext context)

           : base(info, context)

       {

       }

Tuesday, August 12, 2008 4:43 AM by Magnus

# re: XML Serializable Generic Dictionary

I am trying to call the Add method on the Dictionary from diffrent pages, i have to create a new instance of Dictionary, and my data from first page is not reflected in the next page.

Can you help?

Monday, August 18, 2008 9:14 AM by Developer

# re: XML Serializable Generic Dictionary

serializable dictinary is compiled as a dataset//how can I fix this?

Sunday, October 26, 2008 4:39 AM by maha

# re: XML Serializable Generic Dictionary

Many thanks for that!

Monday, December 15, 2008 9:51 PM by Krzysztof Sledziewski

# re: XML Serializable Generic Dictionary

i am trying to use this code but getting an error.. i am using the Dictionary<string,Myobject>  While serializing this object i am getting this error .

"Use the XmlInclude or SoapInclude attribute to specify types that are not known statically."

class people

{

   extendedproperties SerializableDictionary<string,MyObject>;

}

in this case i am adding an extended property of type 'Person' in to people. now i try to serialize the People object. My person object is serializable object. can you tell me where i am going wrong. Thanks in advance.

Tuesday, December 23, 2008 2:16 PM by Pavan

# re: XML Serializable Generic Dictionary

Many thanks for that!

# re: XML Serializable Generic Dictionary

Thanks! I appreciate you sharing your expertise.

Tuesday, February 3, 2009 3:40 AM by Dean

# re: XML Serializable Generic Dictionary

Thanks! You sure saved me lots of times and headaches.

Wednesday, March 4, 2009 8:03 AM by Alpha

# re: XML Serializable Generic Dictionary

Sehr wertvolle Informationen! Empfehlen!

Friday, March 13, 2009 10:11 AM by ...

# re: XML Serializable Generic Dictionary

Sehr gute Seite. Ich habe es zu den Favoriten.

Saturday, March 14, 2009 3:52 PM by ...

# re: XML Serializable Generic Dictionary

Wouldn't the below be a little more efficient

if (reader.IsEmptyElement)

       return;

reader.Read();

instead of

bool wasEmpty = reader.IsEmptyElement;

reader.Read();

if (wasEmpty)

       return;

Monday, March 16, 2009 4:36 PM by Kent

# re: XML Serializable Generic Dictionary

Thanks! very useful

Sunday, April 12, 2009 9:17 PM by Nay

# re: XML Serializable Generic Dictionary

Thanks! very useful.

Tuesday, April 21, 2009 11:48 AM by midas

# re: XML Serializable Generic Dictionary

Hi,

i encountered the same problem as Pavan, when trying to serialize "own user- objects" i also got this error:

InvalidOperationException:

"Use the XmlInclude or SoapInclude attribute to specify types that are not known statically."

This error occurs because the serializer does not know the Types to be Serialized/Deserialized, but you can feed the

serializer with the missing types:

   [XmlRoot("dictionary")]

   public class SerializableDictionary<TKey, TValue> : Dictionary<TKey, TValue>, IXmlSerializable

   {

public static List<Type> AdditionalTypes = new List<Type>();

...

XmlSerializer keySerializer = new XmlSerializer(typeof(TKey));

           XmlSerializer valueSerializer = new XmlSerializer(typeof(TValue),AdditionalTypes.ToArray());

...

XmlSerializer keySerializer = new XmlSerializer(typeof(TKey));

           XmlSerializer valueSerializer = new XmlSerializer(typeof(TValue),AdditionalTypes.ToArray());

...

In this snippet I included a static list of the Types to be Serialized. The list has to be initialized with the "additional" Types that are but as "Values" in the Dictionary.

This solution work pretty well for me,

please let me know what you think about it.

Greetings

Thomas

Wednesday, May 13, 2009 5:39 AM by Thomas U.

# re: XML Serializable Generic Dictionary

Spectacular sir!

You are a gentleman and a scholar!

You give blogs a good name!

Tuesday, May 19, 2009 8:56 PM by Jeff

# re: XML Serializable Generic Dictionary

Pingback from  Wie sichert man am besten Programmdaten und Arrays - Seite 2 | hilpers

Thursday, June 4, 2009 7:17 AM by islami sohbet

# re: XML Serializable Generic Dictionary

Has anyone been able to get past the weird problem of the client seeing it as a dataset?

Tuesday, June 9, 2009 11:18 PM by Dustin

# re: XML Serializable Generic Dictionary

The client sees it as a dataset because the GetSchema method returns null. Null is the default proxy generator representation of a dataset.

Is there any way to return a valid schema here?

Thursday, June 11, 2009 10:55 AM by Djohnnie

# re: XML Serializable Generic Dictionary

I'm trying to set a property to this type in my Settings.settings file, but when I browse for types, my class is not listed. If I type in the namespace/class exactly, Visual Studio tells me it is not defined. However, if I manually edit the Settings.Designer.cs file with the SerializableDictonary type (instead of the type declared in the Settings.settings file), everything works like a charm. My problem is that any changes to the Settings.settings file re-generate the Settings.Designer.cs code, destroying my changes. Does anyone have any idea why this type is not showing up in the type browser in the Settings.settings file?

Thanks,

Mike

Wednesday, June 17, 2009 10:56 AM by Mike

# re: XML Serializable Generic Dictionary

hi there.

this is a nice solution for serializing Dictionaries. thanks. saved me lots of time.

Saturday, July 11, 2009 4:41 AM by venice

# re: XML Serializable Generic Dictionary

Paul,

Thanks so much for creating and posting this!  I ran into the serialization problem and immediately had visions of doing it by hand.  blah.  Your solution worked the first time!

Thursday, August 20, 2009 4:34 PM by Curt

# re: XML Serializable Generic Dictionary

I'm not sure why, but when using this to serialize to a string and working only with the XML fragment produced by this (i.e. a fragment of just the serialized dictionary, so <item> was the top-level element), I had to add two reader.EOF checks in ReadXml to avoid encountering the end of the file, like so:

   public void ReadXml(System.Xml.XmlReader reader)

   {

       XmlSerializer keySerializer = new XmlSerializer(typeof(TKey));

       XmlSerializer valueSerializer = new XmlSerializer(typeof(TValue));

       bool wasEmpty = reader.IsEmptyElement;

       reader.Read();

       if (wasEmpty)

           return;

       while (reader.NodeType != System.Xml.XmlNodeType.EndElement && !reader.EOF)

       {

           reader.ReadStartElement("item");

           reader.ReadStartElement("key");

           TKey key = (TKey)keySerializer.Deserialize(reader);

           reader.ReadEndElement();

           reader.ReadStartElement("value");

           TValue value = (TValue)valueSerializer.Deserialize(reader);

           reader.ReadEndElement();

           this.Add(key, value);

           reader.ReadEndElement();

           reader.MoveToContent();

       }

       if (!reader.EOF)

           reader.ReadEndElement();

   }

Saturday, September 12, 2009 4:19 PM by Richard

# re: XML Serializable Generic Dictionary

Works great. Thanks!

Monday, September 28, 2009 5:39 PM by MIke K.

# re: XML Serializable Generic Dictionary

Thanks a lot it works fine for me

Tuesday, October 20, 2009 6:28 PM by Karim

# re: XML Serializable Generic Dictionary

HI pwelter34,

Great snippet.

Have a problem though. I have tried to create an SerializableDictionary inside another SerializableDictionary.

       private SerializableDictionary<EnumType1, SerializableDictionary<EnumType2, ObjectType>> _matrix;

This seems to fail. Please help.

Sundip

Monday, November 2, 2009 6:36 AM by Sundip

# re: XML Serializable Generic Dictionary

Ancak bir sorun var. Başka bir SerializableDictionary içinde bir SerializableDictionary oluşturmak için çalıştık.

Özel SerializableDictionary <EnumType1, SerializableDictionary <EnumType2,

Sunday, November 8, 2009 1:10 PM by ALTİNDAMLALAR.COM

# re: XML Serializable Generic Dictionary

your site is loading fast

Friday, December 11, 2009 7:33 PM by Suenthen

# re: XML Serializable Generic Dictionary

 any more posts coming ?

Wednesday, December 23, 2009 6:43 AM by Irish Peeps

# re: XML Serializable Generic Dictionary

thanks a very nice

Monday, January 4, 2010 2:39 AM by islami sohbet

# re: XML Serializable Generic Dictionary

Very nice script in XML. I will try it.

Thursday, January 7, 2010 10:31 AM by blacxcom

# re: XML Serializable Generic Dictionary

Thanks harita xml :)

Thursday, January 7, 2010 12:33 PM by islami sohbet

# re: XML Serializable Generic Dictionary

в итоге: мне понравилось...  а82ч

Sunday, February 21, 2010 1:01 AM by Acinnina

# re: XML Serializable Generic Dictionary

в конце концов: превосходно!!  а82ч

Monday, February 22, 2010 12:30 PM by Acinnina

# re: XML Serializable Generic Dictionary

I think u need to include the zero argument constructor in order to make it work.

Thursday, March 18, 2010 6:45 AM by Longchrea

# re: XML Serializable Generic Dictionary

Great tip johannes! I was facing the same issue posted by Yury - weblogs.asp.net/.../444961.aspx.

Thanks once again.

Monday, March 22, 2010 6:07 AM by nlvraghavendra

# re: XML Serializable Generic Dictionary

Thank, very helpful

Ze

Friday, April 9, 2010 5:30 AM by Jose

# re: XML Serializable Generic Dictionary

Thanks for the code example. I got it working, but only after forcing the writer to push everything out: writer.Flush();

Thursday, April 15, 2010 10:43 AM by Tester

# re: XML Serializable Generic Dictionary

You're IOStrams (reader, writer) are not disposed!

Sunday, April 18, 2010 6:02 PM by Shimmy

# re: XML Serializable Generic Dictionary

The code helps me to serialize Generic Dictionary Items. Thanks for sharing.

Monday, April 26, 2010 5:21 AM by NHOQUE

# re: XML Serializable Generic Dictionary

In extension to Paul Welter's response on Monday, May 15, 2006 4:11 PM:

Ensure both types (TKey and TValue) are of type System.Xml.Serialization.IXmlSerializable, use the following class declaration syntax:

public class SerializableDictionary<TKey, TValue> : Dictionary<TKey, TValue>,

IXmlSerializable

where TKey : IXmlSerializable

where TValue : IXmlSerializable

{

 // ...

}

Monday, May 24, 2010 11:01 AM by Holger Boskugel

# re: XML Serializable Generic Dictionary

SerializableDictionary is converted to dataset .... but the dataset is empty ....

How do I solve the problem....

Saturday, July 24, 2010 6:43 AM by Shruthi

# re: XML Serializable Generic Dictionary

your blog is best man i loved it to read this post.

Monday, August 9, 2010 7:18 AM by cheap lion king tickets

# re: XML Serializable Generic Dictionary

Thanks! very useful

Tuesday, August 10, 2010 3:42 PM by Sohbet

# re: XML Serializable Generic Dictionary

Do you provide a license to your code? what kind of restrictions do you have on using your code for commercial purposes. Also the terms of use below points to Microsoft terms of use..Do you have copyrights on this code? Thanks

Thursday, August 26, 2010 11:57 AM by Aditya

# re: XML Serializable Generic Dictionary

You saved my day Paul, god bless you!

Tuesday, August 31, 2010 4:58 AM by Apostolos Georgiadis

# re: XML Serializable Generic Dictionary

thanks a love admın day paul good

Tuesday, September 7, 2010 4:26 AM by video izle

# re: XML Serializable Generic Dictionary

Thanks  man,  it was very small and sweet explanation to understand this.  It really helped me, I had similar problem as MD, but now everything is working.  You people rocks

Monday, September 20, 2010 1:29 PM by dotnetguts

# re: XML Serializable Generic Dictionary

Thanks, this is exactly what I needed, I modded it slightly as I needed to serialize a SortedDictionary.

Thursday, October 7, 2010 8:24 AM by Matias

# re: XML Serializable Generic Dictionary

This is awesome news. A great way to greet the day.

Tuesday, October 19, 2010 6:46 AM by cheap rick ross tickets

# re: XML Serializable Generic Dictionary

looking for better and professional seo services, then please feel free to visit our website.

============================================================

Pallavi

<a href=“www.sapiencebpo.com”>seo services</a>

Tuesday, October 26, 2010 3:11 AM by seo services

# re: XML Serializable Generic Dictionary

thnx for sharing great article

Saturday, November 6, 2010 1:16 PM by Bulgaristanda Eğitim

# re: XML Serializable Generic Dictionary

Thanks! very useful...

Friday, November 12, 2010 5:04 AM by düzce haber