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
What are collection classes?
What is predicate c#?
What is the difference between inheritance and abstract class?
What is the difference between protected and internal in c#?
What is a property in c#?
What language is arduino?
Is it possible to nest cfml conditional tags?
What is difference between ienumerable and list?
Why do we use partial class in c#?
What is difference between a constant and read-only in C#?
What is IL / CIL / MSIL?
Why do we need abstract class?
What is the function of the not null constraint?
What is bit in c#?
What are the Types of JIT and what is econo-JIT