-Using System.Collections.Generic is a statement to use Generic namespace that contains interfaces and classes to allow the user to create strong types collections.
-Using System.Linq; is a statement to use Linq namespace that contains interfaces and classes that support query.
-Using System.Text; is a statement to use Text namespace that contains classes that represent ASCII, Unicode, UTF-7, and UTF-8 character encodings, convert bytes to characters and vice versa, and manipulate and format string objects.
For now the last three statements are not important, but they will be used in the next sections of this tutorial.
-For the console application, the program will start from Main method of class Program that is contained in a namespace (e.g. Ctest).
-Console.WriteLine(“Hello World!”); is used to print the text “Hello World” on the screen.
-Console.ReadLine(); is used to read a value from the keyboard.
Like other languages, C# comments are used to explain the code written and to disable the code that we do not want to be executed. There are two types of comments:
-// used to make comments for a single line
-/* */ used to make comments for multiple lines
This website intents to provide free and high quality tutorials, examples, exercises and solutions, questions and answers of programming and scripting languages: