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


Please Help Members By Posting Answers For Below Questions

What are collection classes?

478


What is predicate c#?

544


What is the difference between inheritance and abstract class?

454


What is the difference between protected and internal in c#?

465


What is a property in c#?

472






What language is arduino?

528


Is it possible to nest cfml conditional tags?

540


What is difference between ienumerable and list?

514


Why do we use partial class in c#?

489


What is difference between a constant and read-only in C#?

535


What is IL / CIL / MSIL?

667


Why do we need abstract class?

474


What is the function of the not null constraint?

494


What is bit in c#?

524


What are the Types of JIT and what is econo-JIT

798