How to store a list of objects in application settings

前端 未结 5 1216
时光取名叫无心
时光取名叫无心 2020-12-02 21:43

I have recently became familiar with C# application settings, and it seems cool.
I was searching for a way to store a list of custom objects, but I couldn\'t find a way!

5条回答
  •  半阙折子戏
    2020-12-02 22:02

    Application configuration is not the good choice for storing the data at application runtime. For this use any available in .NET serialization option like

    • Xml Serialization
    • Binary serialization with proto-buf
    • Json serialization
    • ORM mapping to some embedde database Sqlite

    and many others...

提交回复
热议问题