Skip to content

Latest commit

 

History

History
148 lines (82 loc) · 3.28 KB

README.md

File metadata and controls

148 lines (82 loc) · 3.28 KB

C# Fundamentals by Dara Oladapo

As I start to focus on my core passion in tech-training and knowledge transfer, here is my c-sharp lessons repository on github...This is my adaptation of work and my understanding and how I know how to teach C#. Feel free to contact me for any suggestions or comments.

Our Demo

We will be creating a C# application for a company called WindForce Corp. Let's have some fun!

Lesson 1

Introducing C# and .NET

Here are the items we will be discussing.

  • What is .NET
  • What is C#
  • Your Development Tools
    • .NET Core SDK
    • Visual Studio Code
    • Visual Studio

Lesson 2

Variables and Calculations

In this lesson, we will be talking about data types, variables and do some fun things with those variables.

In the calculations, we introduce on bug as a prerequisite to our next lesson where we deal with what bugs are, how to catch, swash and avoid them (you know, some could be devastating).

Lesson 3

Debugging

In this lesson, we will be talking about how to locate some bugs in your code. From our last lesson, we noticed that when we performed the snippet below, our output was 0 instead of 0.5

int anotherDividedValue = secondValue / firstValue;
Console.WriteLine($"{secondValue}/{firstValue}={anotherDividedValue}");

This is not supposed to be right? We call this a bug because our program is not doing what it is supposed to do. How do we solve this? Let's look into the code and DEBUG.

Oh yeah, we introduced 2 new concepts here, CASTING and PARSING. Since we introduced parsing. We should probably treat something omitted here-accepting values from the console-quickly.

I wish I could show more here but maybe I'll put it in a book or video-concepts like breakpoints.

Lesson 4

Scope

You know when we sometimes, some things are where they are not supposed to be. i.e. out of bounds or you are trying to call for something but you don't have access to it. Yeah, it happens in code too. We call it SCOPE. Now there are some scope levels. some you declare in class level, method level, even have some same-named variables. Check out the code to learn more.

Lesson 5

Strings

In this section we will be talking about strings, how to use them, replace text, concatenate strings. Yes, also string formatting is part of what will be doing.

Lesson 6

Dates and Times

We look on how to do some manipulations with the DateTime object.

  • Get current date
  • Get current time
  • Get long date
  • Get long date

Lesson 7

Arrays and Collections

In this lesson, we discuss how to use arrays and collections - one of the fun features of C# that I use quite a lot.

Lesson 8

Enumerations and Structures

Lesson 9

Making Choices

Lesson 10

Repeating Program Steps

Lesson 11

Reusing Code with Methods

Lesson 12

Handling Errors

Lesson 13

Preventing Bugs

Lesson 14

Defining Classes

Lesson 15

Initializing Objects

Lesson 16

Fine-Tuning Classes

Lesson 17

Overloading Operators

Lesson 18

Using Interfaces

Lesson 19

Making Generic Classes

Lesson 20

Windows Apps with XAML

//Reminder: Put links to learn XAML

Lesson 21

System IO

Lesson 22

Programming Databases

Lesson 23

LINQ to Objects

Lesson 24

LINQ to SQL