C# 6 and .NET Core 1.0:Modern Cross:Platform Development
上QQ阅读APP看书,第一时间看更新

Chapter 2. Speaking C#

This chapter is about the C# language—the grammar and vocabulary that you will use every day to write the source code for your applications.

Programming languages have many similarities to human languages, except that in programming languages, you can make up our own words, just like Dr. Seuss!

"And then, just to show them, I'll sail to Ka-Troo

And bring back an It-Kutch a Preep and a Proo

A Nerkle a Nerd and a Seersucker, too!"

If I Ran the Zoo

To learn to speak C#, you need to create some simple applications. To avoid overloading you with too much information too soon, the first few chapters of this book will use the simplest type of application: a console application.

This chapter covers the following topics:

  • Understanding C# basics
  • Declaring variables
  • Building console applications
  • Operating on variables