create a function called whatever and add that attribute to it. inside it
call MesageBox.Show("Debug"). In main, call the function. If you build in
debug you'll see a messagebox,otherwise you wont.
[Conditional("Debug")]
private void whatever(){
MessageBox.Show("Debug");
}
in main or wherever, call whatever;
"Le" <an*******@discussions.microsoft.com> wrote in message
news:71**********************************@microsof t.com...
Thanks for the reply William, but do you have an example of how to use it.