What?s the difference between the Debug class and Trace
class?
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
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 implicit name of the parameter that gets passed into the class? set method?
What?s the difference between System.String and System.StringBuilder classes?
how to use msflexgrid in asp.net
What is the use of private constructor in c#?
What is exe in c#?
Can the nested class access, the containing class. Give an example?
When a switch is said to be congested?
Can a loop recorder detect a heart attack?
What do you mean by for each loop?
How do I stop my console from closing in c#?
Does c# support multilevel inheritance?
What is difference between abstract class and interface in c#?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)