M
Mark
Conditional methods are throwing me for a loop. I understand that if I
compile the BLAH class code below in a Release mode project, it will not
include the "Message" method. However, let's say that I have another method
that CALLS this method, like the foobar class. Won't the compiler bomb? Or
would its "CallTheOtherMethod" method just not exist either?
Thanks in advance.
Mark
public class blah
{
[Conditional("DEBUG")]
public static void Message (string myString)
{
Console.WriteLine("Neat - " + myString);
}
}
public class foobar
{
public static void CallTheOtherMethod()
{
blah.Message("Won't this bomb when compiled in release mode?");
}
}
compile the BLAH class code below in a Release mode project, it will not
include the "Message" method. However, let's say that I have another method
that CALLS this method, like the foobar class. Won't the compiler bomb? Or
would its "CallTheOtherMethod" method just not exist either?
Thanks in advance.
Mark
public class blah
{
[Conditional("DEBUG")]
public static void Message (string myString)
{
Console.WriteLine("Neat - " + myString);
}
}
public class foobar
{
public static void CallTheOtherMethod()
{
blah.Message("Won't this bomb when compiled in release mode?");
}
}