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 |
Can you use all access modifiers for all types?
Why do we need escape characters?
Can you see a loop recorder?
Why is c# good for games?
How does bitwise xor work?
What are Sealed Classes in C#?
What is the purpose of constructor in c#?
How do I open the console?
What is the use of delegates in c#?
What tool we have to use to install assembli in gac folder.
If we inherit a class do the private variables also get inherited ?
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