Store Dictionary in application settings

后端 未结 9 1616
感动是毒
感动是毒 2020-11-30 08:28

I have a dictionary of strings that i want the user to be able to add/remove info from then store it for them so it they can access it the next time the program restarts

9条回答
  •  再見小時候
    2020-11-30 08:51

    Have you considered using XML to store your dictionary? That would provide a certain amount of extensibility if in the future you decide you want to be able to store other types of dictionaries. You might do something like:

    
       
          [whatever data you like]
       
    
    

    Might be overkill, but you'd also be prepared in the case that you wanted to store more complex data, like custom objects.

提交回复
热议问题