Trace vs Debug in .NET BCL

后端 未结 7 1304
余生分开走
余生分开走 2020-12-02 11:58

It seems that the

  • System.Diagnostics.Debug, and
  • System.Diagnostics.Trace

are largely the same, with the notable exception that

7条回答
  •  无人及你
    2020-12-02 12:42

    For highly performance sensitive code blocks, leaving Trace compiled-in but disabled might make a performance difference.

提交回复
热议问题