Chapter 1. Introducing C#
C# is a relatively new language that builds on features found in its predecessor C-style languages (C, C++, and Java), making it immediately familiar to many experienced programmers. Part of a larger, more complex e...
Hello, World
The best way to learn a new programming language is to write code. The first example is the classic HelloWorld program. In this program, you will display some text to the screen.
Listing 1.1 shows the complete HelloWorld program; in ...
C# Syntax Fundamentals
Once you successfully compile and run the HelloWorld program, you are ready to start dissecting the code to learn its individual parts. First, consider the C# keywords along with the identifiers that the developer chooses....
Working with Variables
Now that you've been introduced to the most basic C# program, it's time to declare a local variable. Once a variable is declared, you can assign it a value, replace that value with a new value, and use it in calculations, ou...
Console Input and Output
This chapter already used System.Console.WriteLine repeatedly for writing out text to the command console. In addition to being able to write out data, a program needs to be able to accept data that a user may enter.
Ge...
Comments
In this section, you modify the program in Listing 1.15 by adding comments. In no way does this vary the execution of the program; rather, providing comments within the code makes it more understandable. Listing 1.17 shows the new code, a...
Common Intermediate Language and ILDASM
As mentioned earlier, the C# compiler converts C# code to CIL code and not to machine code that the processor can understand. Given an assembly (either a DLL or an executable), it is possible to view the CIL...
Summary
This chapter served as a rudimentary introduction to C#. It provided a means of familiarizing you with basic C# syntax. Because of C#'s similarity to C++ style languages, much of what I presented here should not have been new material. How...
AJAX popular information C# language guides Windows books and cookbooks
.......
С 2009 года мы стали переводить структура сайта на различные языки. Сайт теперь будет содержать книги не только на английском языке, но также и на других европейских языках, в том числе и на Русском языке.