Difference between the Debug class and Trace class - C#.NET

Difference between the Debug class and Trace class.

Debug classTrace class
Debug class is used for debug builds.Trace class is used for both debug and release builds.
It works only in debug mode.It works in both case debug and release mode.
We can use Debug.Write() method.We can use Trace.Write() method.
It runs in same thread as main program execute.It runs in different thread form main program execute thread.
Role of the DataReader class in ADO.NET connections - C#.NET
C#.NET - Role of the DataReader class in ADO.NET connections - DataReader class returns a read-only dataset from the data source when the command is executed...
Purpose of Dispose method - C#.NET
C#.NET - purpose of Dispose method - Dispose method is used to destroy the objects from the memory...
Connections supported in Microsoft SQL Server - C#.NET
What are the type of authentications supported to access a database in .NET? Windows Authentication.....
Post your comment