想用一下[Conditional("DEBUG"]属性,结果还不支持Interface, 郁闷了,只能用回#if ....#endif 转载于:https://www.cnblogs.com/peteryu007/archive/2011/07/18/2109355.html