简体   繁体   中英

JSON to set options in C# application

I need to set/unset configure options for an in-house C# software through its GUI. Can I use JSON?

Thanks

Sure, you can just use the DataContractJsonSerializer :-)
http://msdn.microsoft.com/en-us/library/bb412179.aspx

I am not sure about your question, but I would recommend to use the built in configuration mechanism of .NET to store user and application settings

https://stackoverflow.com/search?q=.net+configuration

Otherwise use the DataContractJsonSerializer as suggested and do it manually

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM