What?s the difference between the Debug class and Trace
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
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 a di class?
Is java better than c sharp?
Can you declare the override method static while the original method is non-static?
Why are there five tracing levels in System.Diagnostics.TraceSwitcher?
List down the reason behind the usage of c# language.
What is the purpose of escape sequence?
What is difference between array and collection?
Code to run exe like mspaint,autocad etc in asp.net.
What are properties and indexer?
What are the main reasons to use c# language?
Why is c# a good programming language?
what is the difference between c-sharp and vb.net?What kind of security or advances we find in both languages?