What?s the difference between the Debug class and Trace
class?

Answers were Sorted based on User's Feedback



What?s the difference between the Debug class and Trace class?..

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?s the difference between the Debug class and Trace class?..

Answer / surojit

What’s the difference between the Debug class and Trace
class? Documentation looks the same. Use Debug class for
debug builds, use Trace class for both debug and release
builds.

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More C Sharp Interview Questions

Can you use all access modifiers for all types?

0 Answers  


Why do we need escape characters?

0 Answers  


Can you see a loop recorder?

0 Answers  


Why is c# good for games?

0 Answers  


How does bitwise xor work?

0 Answers  


What are Sealed Classes in C#?

27 Answers   DataPoint, Wipro,


What is the purpose of constructor in c#?

0 Answers  


How do I open the console?

0 Answers  


What is the use of delegates in c#?

0 Answers  


What tool we have to use to install assembli in gac folder.

0 Answers  


If we inherit a class do the private variables also get inherited ?

6 Answers   TCS,


write program in c# using this instructions name avinash varma ,work experiance<2,nochildren his work experiance is higher than 5 years,more than one children one children name is diwakar,number of years of work eperiance at current company is the ratio of children and work experiance is 0.21 to 0.5

0 Answers  


Categories