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 |
Is it good to use var in c#?
How big is a 64 bit integer?
Can we inherit an abstract class in another abstract class. If no why and If yes how..?
What is difference between iqueryable and ienumerable in c#?
How to use the sreamReader class to read form a text file?
Can a dictionary have duplicate keys c#?
Why do we need escape characters?
Is c# front end or back end?
C# is case sensitive, what is mean by case sensitive
What is the use of console application in c#?
What?s the difference between an interface and abstract class?
Is object an int 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)