I wrote this article for the novice who needs to grasp the concepts of what C# is all about, as well as how to write C# code. To read this article you must have an overview of the .NET Framework and Visual Studio.NET (VS.Net) if possible.
Before we discuss any of C#’s basic concepts, you must understand what a computer program is:
A computer program is a series of lines of code that actually do two things:
Store data (in many different ways as we will learn later)
Manipulate this data (in many different ways, as well)
For example, Microsoft Word is a complex program that manipulates text data. You write lines of text in the page and you can change the colors, bold the text, copy and paste the text in your documents and various other operations.
Another example is Adobe Photoshop; a complex application that works with photos and pictures. Here the photos are the program’s data and the program will manipulate this data using its operations. Actually, you can think of this operation as the lines of code that we will write to manipulate this data.
If you’ve ever had to learn another language – French for example – you may have found it difficult at first. But, when you go further on you find that you are learning the language fairly easily. The same thing goes with writing C# code. In the beginning it may not seem easy but, as you go further, you will find yourself writing code without even looking for any references. In the next few sections you will learn many things about writing and organizing your code.