Introduction to C#

Duration: 5 Days

Description

This hands-on course introduces the core concepts of C# programming within the .NET ecosystem. Participants will learn how to write, structure, and run C# programs using modern development tools. The course builds a foundation in object-oriented programming, covering variables, control flow, loops, methods, and classes. Advanced topics like inheritance, interfaces, collections, and structs are also introduced to prepare learners for real-world application development.

Audience

This course is designed for beginners with some basic understanding of programming logic who want to learn C# and .NET. It is ideal for aspiring software developers, QA engineers, and IT professionals transitioning into application development using the Microsoft technology stack.

Objectives

  • Understand the role of .NET runtime and development tools in C# programming
  • Write basic C# programs using variables, operators, and control structures
  • Implement iterative logic using different types of loops
  • Define and invoke methods with various parameter types and return values
  • Create and manipulate objects, classes, and properties
  • Apply object-oriented programming principles including encapsulation, inheritance, and polymorphism
  • Work with collections, enumerations, structs, and other advanced object features in C#

Prerequisites

Participants should be familiar with basic programming concepts such as variables, loops, and conditionals in any programming language. No prior experience with C# or the .NET framework is required. However, learners should have basic experience using a computer in a development environment, such as working with Visual Studio Code or using the command line.

Course Outline

Module 1: C# and .NET

  • CLR and the .NET Environment
  • Developer Tools
  • Creating, Building, and Running a Program

Module 2: Fundamentals

  • Operators and Expressions
  • Data Types and Variables
  • Conditional Statements and Operators

Module 3: Loops

  • While and Do While Loops
  • Break and Continue
  • For Loop and Switch

Module 4: Methods

  • Methods/Functions
  • Parameters and Return Values

Module 5: Objects and Classes

  • How Objects Work
  • Defining Classes, Methods, and Properties
  • Arrays as Object Data

Module 6: Object-Oriented Programming

  • Encapsulation, Data Hiding, and Inheritance
  • Polymorphism, Inheritance, and Interfaces
  • Collections

Module 7: Advanced Object Scenarios

  • Enumerations
  • Struct
  • Object Methods