C# 1: Introduction to programming and the C# language

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

The book is a practical basic introduction to programming and C# that introduces basic principles of object-oriented programming and also deals with the C# programming language through a collection of simple examples. The goal is to provide the basic knowledge needed to develop complete applications and to move on to more specialized topics in programming.

Author(s): Poul Klausen
Publisher: Bookboon
Year: 2012

Language: English

Foreword
Part 1 Introduction to C#
1 Introduction
Hello World
2 Basic program architecture
Print a book
3 Variables
The sum of two numbers
Operators
4 Console programs
Perimeter and area of a circle
Product calculation
Date and time
Arguments on the command line
5 Program control
if
Sort two numbers
if-else
A quadratic equation
while
The sum of the positive number less than 100
for
Sum of positive integers
do
switch
Weekday
The cross-sum
The biggest and the smallest number
6 Strings
The class string
Palindrome
7 Arrays
Two arrays of the type int
Array of strings
Yatzy
Craps
Part 2 Object Oriented Programming
8 Classes
Coins
9 Design of classes
Dice
10 Methods
Methods names
Function overriding
Methods return values
Properties
A point
Parameters
Methods parameters
11 Inheritance
Points
Persons
12 The class Object
13 Abstract classes
Abstract points
Loan
14 Interfaces
Points again
Money
15 Static members
StringBuilder
16 More about arrays
Multi-dimensional arrays
17 Types
18 Enum
19 Struct
20 Generic types
Generic methods
Sorting an array
Parameterized types
The class Set
21 Exception handling
22 Comments
23 Extension methods
Part 3 Collection classes
24 List
A List of strings
Enter sale of products
25 Stack and Queue
Stack of integers
StackSort
26 LinkedList
LinkedList of names
27 Dictionary and SortedDictionary
Table of job titles
User defined key
A sorted dictionary
Comparable keys
Cue list
Part 4 IO
28 Text files
Write and read text
Write a comma separated file
Read a comma separated file
29 Binary files
Print 100 numbers in a fil
Read a binary file
Seek
30 Info about directories and files
FileInfo
DirectroryInfo
31 Object serialization
Datatypes
Binary serialization
Binary deserialization
XML serialization
SOAP serialization
Serialization of a collection
32 User defined serialization
Part 5 Final examples
Lottery
Expression