Make new library project with static class
Utils.cs
namespace MyProject.Utils
{
public static class Utils
{
public const string ConnectionString = @"Server=myServerAddress;Database=myDataBase;User Id=myUsername;Password=myPassword;";
}
}
then bind this assembly to you project
using MyProject.Utils;
{
string connString = Utils.ConnectionString;
}
hope it's help you