Re: C# builder with Mono

DrGusman <[email protected]>
Newsgroups gmane.comp.gnome.mono.general
Message-ID <[email protected]>
If you have a set of different values you can always do:

#if CONFIG1

    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"}; 

#else

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

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

#endif

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.
_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.