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 type checking in c#?
Define xslt.
How big is an int16?
When was c# created?
Which are the access modifiers available in c#?
What is a linked list c#?
Can you have parameters for static constructors?
How many static constructors are allowed in a class?
What is querystring in c#?
can you declare an override method to be static if the original method is not static?
What is the difference between c and c# programming?
What is xml c#?