Does somebody know if exists in C# something similar to #include "xxx.h" in C languaje.
I am developing a DB frontend application, and I would like to insert into a .H file some connection string, in order to #define a server just to developing and when the App is released, I would like just to change #define statement.
.H file will be like:
#define CMP1 // Just for developing
// #define CMP2 // To test in some network
// #define CMP3 // Release version of APP
#define STRCONNECTIONSTRING "user id=sa;password=xxx1;initial catalog=ppp_db;data source=192.168.0.2;Connect Timeout=30".Trim();
#define STRCONNECTIONSTRING "user id=xxx2;password=xxx2;initial catalog=mmm_db;data source=dbsvr2;Connect Timeout=30".Trim();
#define STRCONNECTIONSTRING "user id=xxx3;password=xxx3;initial catalog=ooo_db;data source=dbsvr3;Connect Timeout=30".Trim();
If somebody has other idea, I will be keen to ear that.