#define DEBUG
using System;
using System.Diagnostics;
public class Demo {
[Conditional("DEBUG")]
public static void Message(string str) {
Console.WriteLine(str);
}
}
class Test {
static void functionDisplay() {
Demo.Message("Our function...");
}
public static void Main() {
Demo.Message("This is Main function!");
functionDisplay();
Console.ReadKey();
}
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/265883.html