What?s the difference between the Debug class and Trace
class?
Answers were Sorted based on User's Feedback
Answer / 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 |
What is writeline in c#?
what is webapplication? what is windows application? what is the extension for both . in what purpose we r using webapplication. in which situation we r using windowns application
How do you create multiple inheritance in C#?
5 Answers Infosys, KenIndia, Microsoft,
how do you do exception management
What is default value of bool in c#?
Is stringbuilder thread safe c#?
write the Syntax for Function or Method Overriding?
What is a dictionary in c#?
What is a thread c#?
What is string class in c#?
Are c# tuples immutable?
How do we achieve encapsulation in c#?