简体   繁体   English

从 System.Diagnostics.Debug 中删除引用

[英]Delete references from System.Diagnostics.Debug

我不知道如何删除 System.Diagnostics.Debug 类中的引用,我尝试访问它的方法以查看是否有一个方法可以满足我的要求,但没有,有人知道如何删除引用吗?

System.Diagnostics.Debug is a .NET class in the System.Diagnostics namespace. System.Diagnostics.Debug 是 System.Diagnostics 命名空间中的 .NET 类。 Not sure why you are calling it "my" class.不知道你为什么称它为“我的”课程。

Usually the System.Diagnostics namespace is referenced with a using statement at the top of the file where it is used, eg using System.Diagnostics , so just deleting all instances of that, and any places where you use the Debug class in your code, should be all you need to do.通常 System.Diagnostics 命名空间在using它的文件顶部using语句引用,例如using System.Diagnostics ,因此只需删除它的所有实例,以及您在代码中使用 Debug 类的任何位置,应该是您需要做的所有事情。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 是否有System.Diagnostics.Debug类的TextWriter接口? - Is there a TextWriter interface to the System.Diagnostics.Debug class? 混合UnityEngine.Debug和System.Diagnostics.Debug - Mixing UnityEngine.Debug and System.Diagnostics.Debug 在WCF应用程序中捕获System.Diagnostics.Debug输出 - Capture System.Diagnostics.Debug Output in a WCF application 在 ASP.NET 应用程序中使用 System.Diagnostics.Debug - Using System.Diagnostics.Debug In An ASP.NET Application System.Diagnostics.Trace,System.Diagnostics.Debug和System.Console有什么区别? - What's the difference between System.Diagnostics.Trace, System.Diagnostics.Debug and System.Console? 如何将 System.Diagnostics.Trace 和 System.Diagnostics.Debug 消息记录到 NLog 文件? - How to log System.Diagnostics.Trace and System.Diagnostics.Debug messages to NLog file? 如何使用System.Diagnostics.TraceSource代替System.Diagnostics.Debug类? - How to use System.Diagnostics.TraceSource instead of System.Diagnostics.Debug class? 模糊引用 CS0104:“调试”是“UnityEngine.Debug”和“System.Diagnostics.Debug”之间的模糊引用 - Ambiguous reference CS0104: 'Debug' is an ambiguous reference between'UnityEngine.Debug' and 'System.Diagnostics.Debug' Cs-Script & System.Diagnostics.Debug:覆盖调试 output 跟踪 - Cs-Script & System.Diagnostics.Debug : Overriding Debug output traces 是否有System.Diagnostics.Debug类的TextWriter接口,用于Console.SetOut? - Is there a TextWriter interface to the System.Diagnostics.Debug class, for use with Console.SetOut?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM