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
Describe the roles of clr in .net framework.?
what is deferred loading(lazy loading)?
What is Attribute Routing in ASP.Net MVC?
Explain entity lifecycle? : Entity framework
What are the components required to create a route in mvc?
Does .NET Framework support SAX?
How large is the .net framework 3.0? Does this change make the release larger?
What are the main features of asp.net mvc 4 used by asp.net web api?
Mention the core components of .net framework?
Can you Write the GC(Garbage Collector) Algoritham in .NET? (But not Explination of Working of GC).
Explain representational state transfer (rest) in detail?
In Server how to check whether model has error or not in ASP.Net MVC
What is NonActionAttribute ?
What are ajax helpers in mvc?
What is MVVM design pattern?