[Mono-list] C# builder with Mono

DrGusman geniwab at gmail.com
Thu Apr 28 00:41:58 UTC 2016

If you have a set of different values you can always do:


    string [] conf = { "1", "2", "3", "4", "5"}; 

#elif CONFIG2

    string [] conf = { "6", "7", "8", "9", "10"}; 

#elif CONFIG(N)

    //As many elif's you need

    string [] conf = { "nnn", "nnn", "nnn", "nnn", "nnn"}; 


    //This will be the value if no define is passed to the compiler

    string [] conf = { "ddd", "ddd", "ddd", "ddd", "ddd"}; 


Then pass one of the CONFIG define's to the compiler (if you're using CSC
manually add /define:CONFIG(number), else on MonoDevelop add the define to
one build configuraton).

View this message in context: http://mono.1490590.n4.nabble.com/C-builder-with-Mono-tp4667757p4667772.html
Sent from the Mono - General mailing list archive at Nabble.com.

More information about the Mono-list mailing list