What?s the difference between the Debug class and Trace
class?
Answer Posted / vinay panchal
There are two Trace classes in the Microsoft .NET Framework
library: System.Diagnostics.Trace and
System.Web.TraceContext. These Trace classes are frequently
confused with each other. However, each one is used for a
specific purpose.
You typically use the System.Diagnostics.Trace class to
debug console applications or Windows Forms applications.
You use System.Web.TraceContext only in Microsoft ASP.NET
applications. To display Trace.Write statements on an
ASP.NET page from a Class Library, you must use the
System.Web namespace. The following examples describe how to
use Trace.Write from a Class Library in an ASP.NET application.
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is attribute and reflection in c#?
Is c# the same as d flat?
What is the output of TextWriterTraceListener redirected?
What is Asynchronous call and how it can be implemented using delegates?
What are the generation of Garbage Collection in C# .NET ?
What is the property of a class in c#?
What are the steps to create an assembly and add it to the gac?
What is xor operator in c#?
What is msil, and why should developers need an appreciation of it if at all?
What is different about switch statements in c#?
What is string class in c#?
Explain code compilation in c#.
What you mean by inner exception in c#?
How is a string immutable?
What is c sharp used for?