Chapter 2. Getting Started with C#

In This Chapter

  • Writing a Simple C# Program

  • Comments

  • Identifiers and Keywords

  • Style

  • Preparing a Program To Run

  • Basic C# Types

  • Definite Assignment

  • Basic Conversions

  • Arrays

  • Interacting with Programs

This chapter starts by creating a simple, minimal C# program that will give you a feel for what C# looks like and will be a stepping-stone to more features. This chapter includes instructions on how to compile this program. When needed, additional compilation features will be presented. Appendix A has a detailed list of compilation options.

This chapter also provides coverage of the C# data types. It tells about the various types C# provides. There will be plenty of examples of declarations and the kinds of data that can be ...

Get C# Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.