by Dinesh Thakur

There are no exceptions in C arid in C++ one can get away from using them with error handling functions such as exit() and terminate(). In C# these functions are absent and we introduce exceptions which take their place. The exception handling in C#, and Java is quite similar.



 
by Dinesh Thakur

Like java, C# also provides built-in support for multithreading. A multithread program contains two or more parts that can run concurrently. Each part of such program is called thread, and each thread defines a separate path of execution. Thus, multithreading is a specialized form of multitasking.



 
by Dinesh Thakur

Files are the great way to store data between instances of your application, or file can be used to transfer data between applications. All input and output in the .NET framework involve the abstract base class Stream. The Stream class supports reading and writing bytes. Stream integrates asynchronous support. Its default implementations define synchronous reads and writes in terms of their corresponding asynchronous methods, and vice versa.

 
by Dinesh Thakur

Console Input

The Console class allows using the Write () and the WriteLine () functions to display things on the screen. While the Console.Write () method is used to display something on the screen, the Console class provides the Read () method to get a value from the user. To use it, the name of a variable can be assigned to it. The syntax used is: