
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
Enroll in this beginner-friendly, hands-on course to learn C Sharp from scratch, building first applications while mastering console I/O, variables, control flow, strings, methods, classes, and core object-oriented concepts.
Download and install dotnet 8 SDK and runtime for Windows 64-bit, the latest long-term support version, from the dotnet website; also review available packages for Linux, macOS, and other platforms.
Download and install Visual Studio 2022 to code your dotnet solution. Select the Community version, then install ASP.NET and Web Development, dotnet desktop development, and data storage and processing packages.
Ask questions in the course Q&A area to get quick answers and help other students, and submit a brief review to boost the course’s reach and provide constructive feedback.
Create a new C# console project in Visual Studio, select dotnet core eight templates, name the project and solution, set a location, then edit and save code in Solution Explorer.
Learn to run a simple C# console project in Visual Studio, view Hello World in the console, and use Console.WriteLine and Console.Write with IntelliSense guidance.
Learn how to read user input from the console using Console.ReadLine, store it in a string, and display it with various concatenation and interpolation techniques.
Explore C# keywords and identifiers, learn reserved words, and use the at symbol for restricted identifiers in a console project with string, int, and bool examples.
Learn how to declare and assign local variables in C sharp, using int and string types and shorthand forms. See the console print, and note case sensitivity and naming rules.
Explore value types in C#, including bool with true/false and default false, and integral and floating types like byte, int, float, double, and decimal with f, d, and m suffixes.
Demonstrate value types and reference types in c sharp, showing how value types store data directly while reference types store references to heap objects, with int and string examples.
Explore implicit and explicit data type conversions in C#, including int to float widening and using typecast and convert class methods to int with rounding and overflow considerations.
Explore data type conversion in C# by comparing implicit and explicit conversions, and mastering parse and try parse with type cast, convert class, and error handling.
Explore core statement types in C#, including declaration, assignment, and expression statements. Learn conditional statements with if else and switch, and iterate with for, foreach, while, and do while loops.
Explore conditional statements in C#, including if, else, else if, and switch cases, by evaluating expressions and processing user input in Visual Studio.
Learn how to combine conditions in C# using logical and and logical or operators, compare && vs & and || vs |, and understand short-circuiting and evaluation behavior.
Master the switch case statement in C# to evaluate an expression against multiple cases, using break and default to create a readable alternative to if-else.
Explore iteration statements in C#, control flow tools that repeat blocks, iterate arrays or lists, and run code a number of times, including for, while, do, and for each loops.
Learn to use while loops, a control flow statement, to repeat code while a condition stays true, with practical examples that print even numbers up to a user input.
master c# programming by learning foreach loops to iterate over collections and arrays, with syntax, items, and in keyword, plus practical examples printing 1–10 and joining string words.
Explore break and continue statements in C#. Break terminates loops (for, while) immediately, shown with days-of-week examples; continue skips the current iteration and proceeds with the loop.
Practice loop concepts by building a console multiplication table generator that uses break and continue, reads a starting and ending number, and outputs tables from 1 to 10.
Practice building a C# console app that prints multiplication tables from a starting number to an ending number using nested for loops, console input, and string interpolation.
Master string manipulation in C# by learning core functions and methods, from length and substrings to pattern searches and replacements, with hands-on coding exercises.
Learn to determine a string's length in C# using the length property, an int return value, and validate user input against a 20 character limit with a simple if statement.
Learn to extract substrings in C# with the substring method by specifying a starting index and optional length, using zero-based indexing.
Learn to search within strings using index of and last index of in C#. Find first or last occurrences of a character or substring, with zero-based indexing and practical examples.
Explore how to convert strings to uppercase or lowercase in C# using ToUpper and ToLower, standardizing text for case-insensitive comparisons and reliable data storage.
Explore the C# split method to divide a string into substrings by a delimiter, returning a string array; learn with comma and pipe examples, max count, and remove empty entries.
Learn how to clean user input by using C# string.Trim to remove leading and trailing spaces, and to trim specific characters with optional parameters, including TrimStart and TrimEnd.
Explore the starts with, ends with, and contains string methods in C#, with a focus on the starts with method that checks a string's prefix, using https as an example.
Learn how the ends with method checks a string suffix and returns a boolean, enabling file type detection for extensions like .jpg and .mp4 in C#.
Master how the contains method checks for a substring in a string, with an optional case-insensitive comparison. Use a for-each loop on a city list and break on a match.
Explore what methods (also called functions) are and why they matter in C#, learn to encapsulate reusable blocks of code, and define and use methods to modularize and simplify programming.
Explore method syntax in C#, including signatures, return types, and void, and learn to define and call instance and static methods from the main method in program.cs.
Explain how static methods belong to the type, call directly on the class without creating an instance, and enable reusable, maintainable code using the static keyword.
Explore how method parameters pass data into methods, covering value, value, and output types, and learn to return results with examples like calculating a rectangle area.
Explore value parameters, reference parameters using ref, and output parameters with out in C#, showing how each affects data passed into and returned from methods.
Explore variable scope in C#, including class level scope, method level scope, and block level scope. See how fields relate to class scope and how scope affects accessibility.
Explore optional parameters in C#, where default values (constant expressions) appear after required parameters, and see a hotel reservation example with standard room and one guest default.
Learn how auto implemented properties in C# provide a shorthand for defining properties without backing fields, enabling simple get and set syntax and default initialization.
Explore single, multi-level, and hierarchical inheritance in C#, showing how derived classes inherit from base classes and how public, protected, and private modifiers govern access.
Master method hiding in C# by using the new keyword to hide base class methods in derived classes, and learn how to invoke hidden base members with the base keyword.
Explore runtime polymorphism in C# through method overriding and the virtual and override keywords, using an employee hierarchy with part time, full time, and contractor classes.
Explore the difference between method overriding and method hiding in C#, using virtual and override versus new to demonstrate runtime polymorphism with base and derived classes.
Master C# method overloading to achieve compile time polymorphism by using the same method name with different signatures, varying parameter types and counts, since return type doesn't count.
Explore interfaces and abstract classes in C#, learning how interfaces define a contract of method signatures, properties, events, or indexers, and how classes implement it for polymorphism and loose coupling.
Explore abstract classes in c# as base blueprints with abstract and concrete methods, including the rule that you cannot instantiate an abstract class. See how derived classes implement area calculations.
Compare interfaces and abstract classes in C#: both enable abstraction and encapsulation; abstract classes allow instance fields, while interfaces prohibit non-static fields, and classes can implement multiple interfaces.
This is the complete C# masterclass and covers all C# basics for beginners, intermediates and advanced C# concepts.
Learn all C# concepts including C# hands-on coding exercises.
After covering the basics of C#, we will learn Object-Oriented Programming in C#.
That's right, you don't have to listen to 40+ hour course, rather save your time and energy and jump to making practical applications once you have mastered C# by doing this course.
If you are new to programming, then you have come to the right place.
This C# course is for beginners who want to learn C# and have never used C# in their life. I have created this course in a very structured approach making it very easy to learn all C# concepts and fundamentals.
You will slowly start to gain confidence as you go through each lecture and section. The course is best suited for beginners but if you already know C# or come from another program like Java, then you will be able to easily manage through this course too and would easily achieve a good understanding of the C# concepts.
Why do you need this course?
C# is an amazing programming language and with C# you can build websites, software, desktop applications, games and so much more. C# is the beginning of creating all of this amazing software.
By learning C# you also increase your chances of landing a job as C# is a popular programming language.
Know more about me
I am Sameer, a professional software developer with over 15 years of industry experience. I love to educate myself and others and that's why I started with my YouTube channel where I have a loving audience. I create content for software developers like you so that I can share my knowledge.
Statistics
Over 30000 students on Udemy
Over 4000 Reviews on Udemy
Over 3 Million Views on YouTube
Some of the reviews
Hands down the best way to learn this technology stack. Sameer really did a good job here and I hope he will be blessing us with more interesting Angular projects in the future! Maybe a sample e-commerce or Hotel Booking app :)
- Although I didn't have any prior experience with C# OR .Net Core MVC, I was still able to grasp a lot from this course, all thanks to the instructor!
- A very detailed and extensive course! clear voice and great detail to topics.
- and1000s of more reviews on my courses.
Money Back Guarantee
I guarantee you that after finishing this course, you will be confident enough to create C# applications on your own.
You will feel confident at work or when creating your projects.
If you want to create functional, generic, clean, and usable programs using C#, then this is the course for you.
If still, you are unable to get benefit from this course (we will be sad to see you go!), there is a "30-day money back guaranteed by Udemy".
In this course, you will learn
C# basics
First application using C#
Reading and Writing to Console
C# Keywords
C# Types
Identifiers
Built-in value types
String reference types
Operators
Nullable types
Data conversion
Arrays
Conditional Statements
If
Else
Else-If
Switch-Case
Logical AND, OR
Iteration Statements
For loop
Foreach loops
While loops
Do-White loops
String and String Operations
Methods
Classes
Properties
Object Oriented Programming in C#
Polymorphism
Inheritance
Interfaces
Abstract Classes
Encapsulation
and much more