Introduction to C# Programming

 

This custom 4 day course is a practical introduction to programming in C#, utilizing the services provided by .NET. This course emphasizes the C# language. An important thrust of the course is to teach C# programming from an object-oriented perspective. It is often difficult for programmers trained originally in a procedural language to start “thinking in objects.” This course introduces object-oriented concepts early, and C# is developed in a way that leverages its object orientation. A case study is used to illustrate creating a complete system using C# and .NET. Besides supporting traditional object-oriented features, such as classes, inheritance, and polymorphism, C# introduces several additional features, such as properties, indexers, delegates, events, and interfaces that make C# a compelling language for developing object-oriented and component-based systems.

Audience: Programmers who need to design and develop C# for the .NET framework.

Prerequisites: The student should have programming experience in a high-level language.

Number of Days: 4 days

 

Course Outline

 

1. .NET: What You Need to Know

  • .NET Executables and the CLR
  • A .NET Testbed for C# Programming
  • Using Visual Studio 2012.

 

2. First C# Programs

  • Hello, World
  • Namespaces
  • Variables and Expressions
  • Using C# as a Calculator
  • Input/Output in C#
  • .NET Framework Class Library

 

3. Data Types in C#

  • Data Types
  • Integer Types
  • Floating Point Types
  • Decimal Type
  • Characters and Strings
  • Boolean Type
  • Conversions
  • Nullable Types

 

4. Operators and Expressions

  • Operator Cardinality
  • Arithmetic Operators
  • Relational Operators
  • Logical Operators
  • Bitwise Operators
  • Assignment Operators
  • Expressions
  • Checked and Unchecked

 

5. Control Structures

  • If Test
  • Loops
  • Arrays
  • Foreach
  • More about Control Flow
  • switch

 

6. Object-Oriented Programming

  • Objects
  • Classes
  • Inheritance
  • Polymorphism
  • Object-Oriented Languages
  • Components

 

7. Classes

  • Classes as Structure Data
  • Methods
  • Constructors and Intialization
  • Static Fields and Methods
  • Constant and Readonly

 

8. More about Types

  • Overview of Types in C#
  • Value Types
  • Boxing and Unboxing
  • Reference Types
  • Implicitly Typed Variables

 

9. Methods, Properties, and Operators

  • Methods
  • Parameter Passing
  • Method Overloading
  • Variable-Length Parameter Lists
  • Properties
  • Auto-Implemented Properties
  • Operator Overloading

 

10. Characters and Strings

  • Characters
  • Strings
  • String Input
  • String Methods
  • StringBuilder Class
  • Programming with Strings

 

11. Arrays and Indexers

  • Arrays
  • System.Array
  • Random Number Generation
  • Jagged Arrays
  • Rectangular Arrays
  • Arrays as Collections
  • Bank Case Study – Step 1
  • Indexers

 

12. Inheritance

  • Single Inheritance
  • Access Control
  • Method Hiding
  • Initialization
  • Bank Case Study – Step 2

 

13. Virtual Methods and Polymorphism

  • Virtual Methods and Dynamic Binding
  • Method Overriding
  • Fragile Base Class Problem
  • Polymorphism
  • Abstract Classes
  • Sealed Classes
  • Heterogeneous Collections
  • Bank Case Study—Step 3


 14. Formatting and Conversion

  • ToString
  • Format Strings
  • String Formatting Methods
  • Bank Case Study – Step 4
  • Type Conversions

 

15. Exceptions

  • Exception Fundamentals

To Hire a proven C# and .NET Programming Subject Matter Expert Consultant / Course Author and Instructor who teaches this class, call 800-798-3901 today!

Leave a Reply