As requested by the poster:
The file would look like: (contants.cs)
namespace MyWinApplication
{
static class Constants
{
public static string CONN_STRING = "the actual string";
public static int MAX_USERS = 300;
public static int MAX_DB_CONNECTIONS = 500;
}
}
and the usage will be like:
new SqlConnection(Constants.CONN_STRING);