C# 1: Basic Syntax and Semantics

Software Development

Ratings:
( 0 )
167 pages
Language:
 English
The subject in this book is an introduction to C# with an emphasis on basic language syntax and semantics.
This is a free eBook for students
Sign up for free access
Download free textbooks as PDF or read online. Less than 15% adverts
 
Free 30-day trial
Business subscription free for the first 30 days, then $5.99/mo
Latest eBooks
About the author

Poul Klausen er uddannet cand. scient. i matematik fra Aarhus Universitet med speciale i algebraisk topologi. Efter universitetet og et efterfølgende pædagogikum har Poul Klausen primært arbejdet som underviser og det især inden for it uddannelser og gennem de sidste mange år som underviser på datamat...

Description
Content

This book is the first in a series of books on software development in C#. The subject is an introduction to C# with an emphasis on basic language syntax and semantics, but it is also a book about what programming in general is and how to practically write simple programs. The book requires no knowledge about programming or the language C#, and the goal is to show how to get started writing computer programs.

Click here to download the source files from this book.

  • Foreword
  1. Programming
  2. Hello World
    1. Visual Studio
    2. The Kings
  3. Commands and console programs
    1. Commands
    2. PrintAddress
    3. Console programs
  4. Variables and data types
    1. Operators
    2. Literals
    3. Formatting output
    4. Objects
    5. TheAddress
    6. Inheritance
    7. Namespaces
    8. Example: Cubes
    9. Arrays
    10. Example: CupProgram
    11. Multidimensional arrays
  5. Program control
    1. The if statement
    2. Do and while statements
    3. The for statement
    4. The switch statement
    5. Return statement
    6. Break, continue and goto
  6. List
  7. Comparison and sorting
  8. Files
    1. Text files
    2. Serialization of objects
  9. More about classes
    1. The program stack
    2. Class examples
    3. More classes
    4. Methods
    5. Objects
    6. Visibility
    7. Static members
  10. Final example: Lotto
    1. Design
    2. Programming and test