个人想法 [英] Personal Opinion

查看:107
本文介绍了个人想法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为一家小型企业提出申请,进展顺利.到目前为止,我一直在使用文本文档和CSV文件存储所需的数据.没什么大事,也不需要在线数据库.现在我的问题是,没有C#的正式"培训,我有几个问题,首先是app.config的目的是什么?其次,您将如何存储应用程序的用户设置?我目前正在测试并尝试探索将它们存储在纯文本文件或什至在注册表中的优点.

您怎么看?
P.S.如果事先提出了一个愚蠢的问题,请放轻松.

I''m making an application for a small sized business, it''s coming along nicely. So far I''ve been using text documents and CSV files to store the data that they want. Nothing big, no need for an online database. My question now is this, with no ''formal'' training in C# I have a couple of questions, firstly what is the purpose of app.config? Secondly, how would you store user settings of an application? I am currently testing around and tyring to explore the advantages of storing them in plain text file, or even in the registry.

What do you think?
P.S. Take it easy, if it''s a dumb question apologies in advance.

推荐答案

app.config是该死的方便事情,除非您有一些相当奇怪的要求,您应该利用它.关于app.config的唯一不好的事情是程序集(DLL)不能轻易拥有自己的app.config.

用户设置(可由用户更改的设置)存储在以下位置的用户配置文件中:相应的特殊(隐藏)文件夹(在Vista中为ProgramData). Google的"c#设置"或类似的东西可以让您了解使用它们的方法,甚至可以搜索CodeProject文章.我知道这里至少有三篇文章涉及用户设置.

The app.config is a damn handy thing, and unless you have some fairly bizarre requirements, you should make use of it. The only bad thing about the app.config is that assemblies (DLLs) cannot easily have their own app.config.

User settings (settings that can be changed by the user) are stored in a user config file in the appropriate special (hidden) folder (ProgramData in Vista). Google "c# settings" or something like that to get an idea of using them, or even search CodeProject articles. I know there are at least three articles here that deal with user settings.


这篇关于个人想法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆