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
Who introduced c#?
What is the keyword used to prevent a class from being inherited by another class?
what is scope of a protected internal member variable of a c# class
Can I define a type that is an alias of another type (like typedef in c++)?
What is the delegate in c#?
Is it possible to inherit multiple interfaces?
What is virtual class in C#?
Why ienumerable is used in c#?
What is unsigned int?
What are c# i/o classes?
Please explain the basic string operations used in c#?
What is string programming language?
What is c# in asp net?
What is a cs file?
What is the major difference between a custom control and user control?