C# Basics for Beginners: Learn C# Fundamentals by Coding

Master C# fundamentals in 6 hours - The most popular course with 50,000+ students, packed with tips and exercises!

  • Mosh Hamedani
  • 4.5
  • (58144 reviews)
  • 5 hrs
  • 87 lectures
  • Udemy
C# Basics for Beginners: Learn C# Fundamentals by Coding

What you will learn?

  • Learn the fundamentals of C# and .NET Framework
  • Work with primitive types and expressions
  • Work with non-primitive types (classes, structs, arrays and enums)
  • Learn the difference between value types and reference types
  • Control the flow of programs using conditional statements
  • Use arrays and lists
  • Work with files and directories
  • Work with text
  • Work with date and time
  • Debug C# applications effectively

Your trainer

Mosh Hamedani

Hi! My name is Mosh (Moshfegh) Hamedani! I'm a passionate software engineer with two decades of experience and I've taught over 3 million people who to code or how to become professional software engineers through my YouTube channel and online courses.

My goal is to make software engineering fun and accessible to everyone. That's why my courses are simple, pragmatic and free of BS.

87 lessons

Easy to follow lectures and videos covering subject details.

5 hours

This course includes hours of video material. Watch on-demand, anytime, anywhere.

Certificate of Completion

You will earn a Certificate of Completion at the end of this course.

Course curriculum

  • What is this Course01:21
  • About Me01:40
  • A Note on Taking this Course00:14
  • Asking Questions00:33
  • Before You Get Started00:50
  • Introduction00:55
  • C# vs .NET00:53
  • What is CLR?02:12
  • Architecture of .NET Applications02:42
  • Getting Visual Studio1 page
  • Our First C# Application09:53
  • What is ReSharper?00:28
  • Fundamentals of C# and .NET3 questions
  • Summary01:13
  • Introduction00:26
  • Variables and Constants08:43
  • Overflowing02:13
  • Scope01:02
  • Demo: Variables and Constants11:27
  • Type Conversion04:48
  • Demo: Type Conversion10:16
  • Operators04:12
  • What are Logical Operations?2 pages
  • Demo: Operators06:21
  • Comments01:43
  • Primitive Types and Expressions6 questions
  • Summary00:35
  • Introduction00:25
  • Classes05:55
  • Demo: Classes08:27
  • Structs01:28
  • Arrays02:15
  • Demo: Arrays03:51
  • Strings05:49
  • Demo: Strings07:42
  • Enums01:47
  • Demo: Enums07:37
  • Reference Types and Value Types03:14
  • Demo: Reference Types and Value Types05:48
  • Demo: Reference Types and Value Types03:48
  • Non-primitive Types8 questions
  • Summary00:56
  • Introduction01:13
  • Conditional Statements02:43
  • Demo: If/Else and Switch/Case08:40
  • Exercises01:10
  • Iteration Statements04:00
  • Demo: For Loops01:56
  • Demo: Foreach Loops03:42
  • Demo: While Loops07:00
  • Random Class09:05
  • Control Flow4 questions
  • Exercises01:07
  • Summary00:37
  • Introduction00:38
  • Arrays04:47
  • Demo: Arrays10:02
  • Lists02:18
  • Demo: Lists10:11
  • Exercises01:20
  • Arrays and Lists4 questions
  • Summary00:38
  • Introduction00:17
  • DateTime06:20
  • TimeSpan07:28
  • Dates and Times Quiz4 questions
  • Summary00:35
  • Introduction00:17
  • String04:24
  • Demo: String12:28
  • Live Coding: Summarising Text11:18
  • StringBuilder01:07
  • Demo: StringBuilder07:30
  • Working with Text4 questions
  • Exercises01:15
  • Procedural Programming08:45
  • Summary00:35
  • Introduction00:20
  • System.IO Namespace03:58
  • Demo: File and FileInfo05:50
  • Demo: Directory and DirectoryInfo06:01
  • Demo: Path02:53
  • Exercises00:08
  • Working with Files2 questions
  • Summary01:00
  • Introduction00:21
  • Debugging Tools in Visual Studio10:24
  • Removing Side Effects09:15
  • Defensive Programming07:44
  • Call Stack Window01:46
  • Locals and Autos Windows01:53
  • Debugging Applications4 questions
  • Summary00:38
  • What's Next?00:50
  • Final Words01:01
  • Get My Other Courses with a Discount00:20
Online Courses

Learning C# doesn't have to be hard. Here is our curated list of recommended online courses that will guide you step-by-step in the learning process.

Learn more
Books

Are you an avid book reader? Do you prefer paperback, or maybe Kindle version? Take a look at our curated list of C# related books and take yourskills to the next level.

Learn more
YouTube videos

The number of high-quality and free C# video tutorials is growing fast. Check this curated list of recommended videos - there is no excuse to stop learning.

Learn more