Learn C# Basics in 1 Hour - C# Tutorial For Beginners

Published on Apr 3, 2016 1,500,148 views

This C# tutorial for beginners helps you learn C# programming from scratch. Watch this C# for beginners tutorial and get started!
🔥Get my COMPLETE C# course (80% OFF - LIMITED TIME): http://bit.ly/2KJLPuS

🔥Subscribe for more C# tutorials like this: https://www.youtube.com/channel/UCWv7...

Want to learn more from me? Check out my blog and courses:


Watch this C# tutorial for beginners to learn the fundamentals of C# (pronounced C sharp) and .NET framework. If you're looking for a C# tutorial that teaches you C# programming from scratch, this tutorial is for you. C# is a popular programming language and everyday people use to build games, desktop, mobile, and web applications.

00:00 Introduction
02:16 Difference between C# and .NET
03:07 CLR
05:21 Architecture of .NET Applications
07:52 Your First C# Program
18:45 Variables and Constants
27:24 Overflowing
29:34 Scope
30:33 Demo of Variables and Constants
42:40 Type Conversion
47:30 Demo of Type Conversion
57:43 Operators

Other C# tutorials on my channel:

Debugging C# Code in Visual Studio

C# Generics

  • Abdullah Adil
    Abdullah Adil 1 year ago Console.Writeline("Hello World"); "Momma I became a programmer!"
  • Programming with Mosh
    Programming with Mosh 1 year ago Congratulations!
  • Simon Ndung'u
    Simon Ndung'u 9 months ago cool
  • Jurica Staresincic
    Jurica Staresincic 8 months ago you actually missed capital L in WriteLine nethod FFS :-P
  • Carlos Andiazabal
    Carlos Andiazabal 8 months ago ma quanto è bravo il mio bambino. Bello di mamma!!!!!!
  • Nerf Master blaster
    Nerf Master blaster 8 months ago ahahahhahhahaha XD
  • נועה שדה
    נועה שדה 6 months ago i think you mean: Console.WriteLine("Hello World"); --- you forgot the capital "L" in "WriteLine"
  • Baron Kimaru
    Baron Kimaru 6 months ago Welcome to the unhappy world of Debugging young blood!
  • Avia Tech
    Avia Tech 5 months ago 2 weak warnings found ⚠️ Would you like us to replace them? Console.WriteLine(“Hello World”); // “Momma I became a programmer!”
  • Snehal Pardeshi
    Snehal Pardeshi 3 months ago Oh you dint.. WriteLine boy..!
  • Amazing Sage
    Amazing Sage 1 month ago Dude thats me XD
  • Carl CIFER
    Carl CIFER 1 month ago Mom: Oh my son so cute!! Debugger: What the actual fuck?!
  • Hans Zarkov
    Hans Zarkov 2 weeks ago but she won't be able to read it unless you add Console.Readline();
  • Saeed Hashemi
    Saeed Hashemi 2 years ago thank u for teaching us in dark mode
  • driate anass
    driate anass 1 year ago hahahaahaha
  • Oyon Ahmed
    Oyon Ahmed 1 year ago https://goo.gl/TDsKfk
    BOBOUDA 1 year ago Just wondering, how do you enable that ?
  • Bas Heijnis
    Bas Heijnis 1 year ago tools > options > environment > general > color theme
  • Addam Boord
    Addam Boord 11 months ago Welcome to the dark side.
  • Diana Franco
    Diana Franco 11 months ago The colour of the fonts are set automatically? Because I have the dark theme and my coding words are less colourful :(
  • Bas Heijnis
  • Diana Franco
    Diana Franco 11 months ago Hi Bas, thanks for your reply. I was able to turn the colours on following this: ReSharper - Code Inspection - Settings - Color Identifiers check box to enable Resharper syntax highlighting.
  • Isaiah Wallace
    Isaiah Wallace 10 months ago YESSSSSSSSSSSSSSSS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  • Ibby M
    Ibby M 7 months ago stfu
  • Goomashroom
    Goomashroom 5 months ago dude.... that's racist. in 2018, really man? not cool bro
  • Sarah Anueyiagu
    Sarah Anueyiagu 4 months ago @Goomashroom really? Whats racist about it..😏
  • ga_lazy
    ga_lazy 4 months ago @Goomashroom He was saying thanks for turning on dark mode because after looking at white mode it hurts your eyes, escpecially when its an 1 hour tutorial. He was not being racist and referring to colors of people. Next time think about what you say
  • RedstoneBros
    RedstoneBros 1 week ago And then the sections of him talking to the camera directly is brighter than the sun T.T
  • SF12 Studies
    SF12 Studies 5 days ago Honestly PyCharm Is Better XP
  • Marco Longo
    Marco Longo 1 year ago I've been looking for a tutorial like this for weeks. You seem to be the only guy ON INTERNET who doesn't take anything for granted and actually explains every single aspect of the programming language with knowledge and clarity. Most people don't understand that even the smallest insignificant detail could be very confusing for a neophyte if they don't explain what it does and why it behaves that way. Thanks for going so in depth on each topic!
  • Programming with Mosh
    Programming with Mosh 1 year ago Hi Marco, thanks for such a beautiful comment! I've got several tutorials on my YouTube channel, but if you want to learn more from me, you may want to consider getting my complete C# courses. This way you don't have to jump from one tutorial to another. Details are here: http://programmingwithmosh.com/courses
  • volod'ka
    volod'ka 1 year ago +Programming with Mosh Good afternoon sir. I am a 22 year-old boy. I decided to begin learning programming ...yeah I've got a job after graduation (manager)...but,I 'd like to try programming,try smth completely new...there is a bunch of statements on internet claiming that such newbees as me MUST begin immersion into Programming with Web-development...to be honest, above-mentioned stuff does not interest me at all...I'd like to learn lang that can be used to creat apps...to me, it's more interesting than creating web pages.Am I old?What do you think??Thnx
  • DjeieA KeksekI
    DjeieA KeksekI 11 months ago volod'ka no you are not old lol, I know somebody who was around 80 years old and was learning reading and writing, she had didn't have the opportunity before probably. I recommend you start with web pages because I'm a newbie myself. Believe me it can help you a lot ( HTML, CSS ), also if you want to make an app you should know how to make a website for it as much as I know ( I'm not sure but if your customers wanted to contact you or find the support they should go somewhere like your own website ). If you learn your first language you can learn other ones easier. You just need to put effort ( effectively ), put 5 minutes everyday to learn, but make sure to do it, never ever delay it for tomorrow. When you made sure you did it add more time to it, make it 15 minutes each day and .... . If you have the strong courage that you want to sacrifice other things then you can study hours, but make sure you continue it. If you really want to do something you should put effort ( effectively ).
  • Julius Liaudanskas
    Julius Liaudanskas 1 month ago "Most people don't understand that even the smallest insignificant detail could be very confusing for a neophyte if they don't explain what it does and why it behaves that way" -- As a person who's trying to dive down into progamming, this is an absolute truth!
  • Sam van der Kris
    Sam van der Kris 2 years ago Great tutorial. Thanks a lot!
  • Angkor Tech
  • BlameYourM8
    BlameYourM8 1 year ago lol I find so many people has same profile pictures as me (i got your cat on steam)
  • Oyon Ahmed
    Oyon Ahmed 1 year ago https://goo.gl/TDsKfk
  • Oyon Ahmed
    Oyon Ahmed 1 year ago https://goo.gl/TDsKfk
  • John Michael Ferrer
    John Michael Ferrer 11 months ago Now that you have learned the basics, you are now ready for the real deal. Check out LiveEdu dot tv. They will guide to make your own software and program! You won't regret it :)
  • Aarif Almarshidy
    Aarif Almarshidy 2 years ago OMG , i almost started to hate learning how to code until i saw him , he is very neat , he didn't let any questions stuck in my mind ,  because i normally do , and as i get one i just can't move on to another info , but this man is good , got to tell you ..
  • Programming with Mosh
    Programming with Mosh 2 years ago Glad you liked my tutorial. In case you're interested, you can get the complete course here: programmingwithmosh.com/courses
  • Obodoma Uzondu Vincent
    Obodoma Uzondu Vincent 2 years ago please how can i effect the payment and get the tutorial for c# tutorial for beginners.
  • Obodoma Uzondu Vincent
    Obodoma Uzondu Vincent 2 years ago my gmail is uobodomavin@gmail.com
  • weak sause
    weak sause 1 year ago glad i am not the only one who tunes out once a question has been left unanswered.
  • Konstantinos Angelis
    Konstantinos Angelis 1 year ago Programming with Mosh
  • Ben Chee
    Ben Chee 2 years ago Good refreshing course for me ... after many years  not touching programming.