Learn C# programming with Hands-on Project

advertisement

Learn C# with Hands-on Project

Introduction

Learn C# programming with Hands-on Project
Learn C# programming with Hands-on Project

What is C#?

    C#, pronounced as C Sharp, is an object-oriented programming language developed by Microsoft in the early 2000s, led by Anders Hejlsberg. It is part of the .Net framework and is intended to be a simple general-purpose programming language that can be used to develop different types of applications, including console, windows, web and mobile applications. Like all modern programming languages, C# code resembles the English language which computers are unable to understand. Therefore, C# code has to be converted into machine language using what is known as a compiler (refer to footnote). The compiler that we’ll be using in this book is the free Visual Studio Community 2015 provided by Microsoft.

Learn to Program using the C Programming Language

advertisement

Why Learn C#?

    C# has syntax and features that resemble other programming languages like Java and C++. As such, if you have any prior programming experience, you will find learning C# a breeze. Even if you are totally new to programming, C# is designed to be easy to learn (unlike C or C++) and is a great first language to learn. In addition, C# is part of the .Net framework. 

    This framework includes a large library of pre-written code that programmers can use without having to write everything from scratch. This allows programmers to rapidly develop their everything from scratch. This allows programmers to rapidly develop their applications in C#, making C# the ideal language to work with if you are on a tight schedule.

advertisement

Table of Contents

Chapter 1: Introduction to C#

  • What is C#?
  • Why Learn C#?

Chapter 2: Getting ready for C#

Installing Visual Studio Community

Your First C# Program

Basic Structure of a C# Program

Directive

Namespace

The Main() Method

Comments

Chapter 3: The World of Variables and Operators

What are variables?

Data Types in C#

  • int
  • byte
  • float
  • double
  • decimal
  • char
  • bool

Naming a Variable

Initializing a Variable

The Assignment Sign

Basic Operators

More Assignment Operators

Type Casting In C#

Chapter 4: Arrays, Strings and Lists

Array

Array Properties and Methods

String

String Properties and Methods

Lists

List Properties and Methods

Value Type vs. Reference Type

Chapter 5: Making our Program Interactive

Displaying Messages to Users

Escape Sequences

Accepting User Input

Converting a String to a Number

Putting it all Together

Chapter 6: Making Choices and Decisions

Condition Statements

Control Flow Statements

  • If Statement
  • Inline If
  • Switch Statement
  • For Loop
  • Foreach Loop
  • While Loop
  • Do while
  • Jump Statements
  • Break
  • Continue

Exception Handling

Specific Errors

Chapter 7: Object-Oriented Programming Part 1

What is Object-Oriented Programming?

Writing our own class

  • Fields
  • Properties
  • Methods
  • Constructors

Instantiating an Object

Static Keyword

Advanced Method Concepts

Using Arrays and Lists

Using params keyword

Passing Value Type vs Reference Type Parameters

Download full PDF in Comment section

advertisement

1 Comments

Previous Post Next Post