Global vs Singleton in .NET
问题 I have a very common situation here. And for years I haven't found if what i am doing is RIGHT by industry standards.Consider an application which connects to the database, but where the connection string instead of being stored in some file/setting is being passed as a command line parameter at startup OR the database is browsed to at the time the application starts up. Well it becomes necessary to save that connection string somewhere within the scope of the app. Most common way I have seen