Answer Posted / kirti
Yes, in the System.Diagnostics namespace. There are two main classes that deal with tracing - Debug and Trace. They both work in a similar way - the difference is that tracing from the Debug class only works in builds that have the DEBUG symbol defined, whereas tracing from the Trace class only works in builds that have the TRACE symbol defined. Typically this means that you should use System.Diagnostics.Trace.WriteLine for tracing that you want to work in debug and release builds, and System.Diagnostics.Debug.WriteLine for tracing that you want to work only in debug builds.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can you explain renderbody and renderpage in mvc?
what is explicit loading?
How do you assign a value to a complex number 7 how has exception hand changed in .net framework 4.0?
Explain the role of assembly in the .net framework.
What is controllercontext?
What is iobjectset? : Entity framework
explain what does .edmx file contains?
What does a viewmodel do?
What is the difference between renderaction and renderpartial?
What are html helpers in asp.net mvc?
What is the meaning of unobtrusive javascript? Explain us by any practical example.
Is .net framework backwards compatible?
what is deferred loading(lazy loading)?
How to change the action name in mvc?
What is the advantage of using asp.net routing?