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 |
How can we acheive inheritance in VB.NET ?
Is struct object oriented?
Why we use get and set method in c#?
What is dynamic object in c#?
What are the different types of constructors?
Explain the difference between a namespace and assembly name in .net?
How to install or uninstall a windows service?
What is early binding and late binding
12 Answers ABC, Infosys, TATA,
What is an enumerator c#?
if we are updating a database using thread, and mean while application crashes or thread being aborted then what will happen in Database? Rollback or Database will be updated? Please explain with different scenario.
What is the difference between finalize() and dispose() methods?
What is collection class 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)