Best way to store data locally in .NET (C#)

后端 未结 19 1478
南方客
南方客 2020-11-28 01:53

I\'m writing an application that takes user data and stores it locally for use later. The application will be started and stopped fairly often, and I\'d like to make it save

19条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-28 02:18

    I'd store the file as JSON. Since you're storing a dictionary which is just a name/value pair list then this is pretty much what json was designed for.
    There a quite a few decent, free .NET json libraries - here's one but you can find a full list on the first link.

提交回复
热议问题