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
Explain the difference between private and shared assembly?
Name the control which cannot be placed in mdi?
Does c# have functions?
What is public void in c#?
What are the types of class in c#?
What is a method signature?
Why to use lock statement in c#?
What is the interface in c#?
What is a c# delegate?
Explain deadlock?
Why do I get a security exception when I try to run my c# app?
What is parameters in c#?
What is private readonly in c#?
From which base class do all Web Forms inherit from?
How to implement a singleton design pattern in c#?