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
Are c# strings immutable?
What is the difference between Java and .NET garbage collectors?
What is the purpose of the integer parse method the decimal parse method?
What is the symbol used for in c#?
What is anonymous method in c#?
What is protected internal modifier in C#?
What are sessions in c#?
Why is .net so popular?
What is the difference between static and constant variables?
What is wrong with the sample program below?
How to sign an assembly with strong name?
What is the use of delegate?
Can datetime be null c#?
What is exe file in c#?
What is a collection in c#?