CFanatic

Go Back   CFanatic > Programming > C# Programming

Join CFanatic Forum Now

Serialize a Dictionary topic posted under C# Programming which is a part of Programming category in CFanatic Forum
Reply
 
Thread Tools Display Modes
  #1  
Old 09-08-2010, 03:03 PM
Junior Member
 
Join Date: Sep 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
PierlucSS is on a distinguished road
| More
Serialize a Dictionary

I have been able to serialize an ienumerable this way
Code:
            [XmlArray("TRANSACTIONS")]
            [XmlArrayItem("TRANSACTION", typeof(Record))]
            public IEnumerable Records
            {
                    get 
                    {
                            foreach(Record br in _budget)
                            {
                                    yield return br;
                            }
                    }
            }
However, I realised that now I need a dictionnary containing a collection (Dictionary (Record collection implements ienumerable)))?

how can i achieve that?

Thank you

Last edited by shabbir; 09-08-2010 at 10:36 PM. Reason: Code Blocks
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to keep a word dictionary in one variable Clawsy C Programming 0 09-08-2010 06:40 AM

 

Advertisement

CFanatic Search
Custom Search

Advertisement

All times are GMT -5. The time now is 04:19 PM.



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO ©2010, Crawlability, Inc.
Cfanatic.com is a premier member of the IDG TechNetwork. For advertising opportunities contact here
Get Paid for Working on Projects Matching Your Expertise at Go4Expert's Jobs Board