Learn C# Programming - Full Course with Mini-Projects
This complete C# tutorial for beginners will take you from the basics of C# programming to advanced concepts.
✏️ Course developed by @CoffeeNCode
Learn more from the course creator: www.udemy.com/course/csharp-c...
⭐️ Contents ⭐️
(0:00:00) Introduction
(0:01:56) Installing Visual Studio 2022
(0:05:25) Creating your first project
(0:07:48) Hello world
(0:10:56) Numeric data types
(0:18:08) Text based data types
(0:20:32) Converting string to numbers
(0:24:27) Boolean data type
(0:25:36) Operators
(0:31:36) Remainder
(0:35:08) Var keyword
(0:39:13) Const keyword
(0:43:15) Exercise - Storing user data
(0:45:05) Exercise - Odd/Even checker
(0:46:59) Console Input/Output
(0:55:32) If statements
(1:09:13) Switch statements
(1:14:29) For loops
(1:22:28) While loops
(1:32:53) Conditional operator
(1:36:22) Numeric formatting
(1:49:36) TryParse function
(1:59:42) Exercise - Times table
(2:03:10) Exercise - Fizz buzz game
(2:08:24) Verbatim string literal
(2:17:00) String formatting
(2:22:36) String interpolation
(2:25:59) String concatenation
(2:30:41) Empty string
(2:32:59) String Equals function
(2:38:03) String iteration looping
(2:47:56) String IsNullOrEmpty function
(2:53:07) Exercise - Print string in reverse
(3:01:44) Exercise - Password checker
(3:11:02) Arrays
(3:32:59) Array sorting
(3:35:48) Array reversal
(3:39:20) Array clearing
(3:45:38) Array IndexOf
(3:55:00) Lists
(4:03:57) Dictionary
(4:16:30) Exercise - Odd/Even number split
(4:23:11) Exercise - Array of multiples
(4:30:00) Functions
(4:35:39) Void functions
(4:41:32) Return type functions
(4:59:48) Function parameters
(5:12:24) Optional parameters
(5:17:19) Named parameters
(5:19:51) Out parameters
(5:37:28) Reference parameters
(5:46:12) Exercise - Area of a Triangle
(5:50:14) Exercise - Sum of int Array
(6:01:09) Exception handling
(6:03:27) Try…catch
(6:12:47) Printing error messages
(6:17:31) Exercise - Custom TryParse
(6:26:00) Debugging
(6:37:55) Local/auto window
(6:41:35) Watch window
(6:46:40) Exercise - Fix logic error
(6:50:14) Structures
(7:06:56) Classes
(7:15:56) Class functions
(7:22:07) Class fields
(7:37:27) Class variable/function scope
(7:41:30) Class properties
(8:01:09) Class ToString function override
(8:16:44) Outro
🎉 Thanks to our Champion and Sponsor supporters:
👾 davthecoder
👾 jedi-or-sith
👾 南宮千影
👾 Agustín Kussrow
👾 Nattira Maneerat
👾 Heather Wcislo
👾 Serhiy Kalinets
👾 Justin Hual
👾 Otis Morgan
👾 Oscar Rahnama
--
Learn to code for free and get a developer job: www.freecodecamp.org
Read hundreds of articles on programming: freecodecamp.org/news
Пікірлер: 234
Thank you for watching! I hope you found this course valuable. If you have any questions, feel free to reach out or comment below. Don't forget to check out my channel and Udemy course for more content like this. Thanks again fCC for the opportunity! 🎉 ✏ Course: www.udemy.com/course/csharp-complete-masterclass/?couponCode=LE4RNCSHARP 💻 Channel: www.youtube.com/@CoffeeNCode
@IncomingLegend
Ай бұрын
I subscribed to your channel, keep up the good work
@CoffeeNCode
Ай бұрын
@@IncomingLegend Thank you! I really appreciate it 😊
@spanabyss
Ай бұрын
I want to ask, do u need to learn c before learning c# and is this video a complete beginner's course?
@CoffeeNCode
Ай бұрын
@@spanabyss Hey thanks for reaching out! There is no requirements to this course, it will take you from complete beginner and show you how to get setup with Visual Studio and then it'll teach you C# with no prior knowledge required. Which also means you don't need to know the C language or any other language to start this course 😊
@spanabyss
Ай бұрын
Whoa okay, thanks very much
Nice to see a C# Course!
@CoffeeNCode
Ай бұрын
Thank you! I hope you enjoy the course!
Thank you CodeCamp! I left university to self-learn code. In 5 months, I have learned many languages and frameworks from your videos and landed an internship recently. This is better than any cs degree.
@Soheib007
Ай бұрын
Congrats man , you nailed it 🙏
@CoffeeNCode
Ай бұрын
Awesome, that's great progress! 🔥
@gamingonpotatolaptops1665
Ай бұрын
Guys pls help let's say you wanna go into game engine programming. Is it necessary to learn calculas and algebra because my university does not offer calculas and algebra it offers applied maths so pls help me
@cosmicgeo001
Ай бұрын
@ga-dit Really? It’s better than a degree? Which languages are best for beginners? I’m deciding between self teaching while completing an IT degree or switching to a CS degree.
@gaditproductions
Ай бұрын
@@cosmicgeo001 Well a CS degree can't hurt you but its not really worth if you r spending too much money on it. IT degree wont really get a Software job unless you self learn coding. Rather spend that money on courses or resources from freecodecamp/other sites. And use the time you would have wasted in college to find internships. Thats what I did and currently working for over little 100k while still have for my hobbies. My friends with CS degrees are struggling because so much surplus in the market.
This channel is just a blessing,all this knowledge for free
@CoffeeNCode
Ай бұрын
For sure freeCodeCamp is awesome - thank you for tuning into the course!
@Thefuryspeed100
Ай бұрын
as all knowledge should be
The instructor does an amazing job of breaking down the subject matter. I really love his summaries at the end of each video. Exceptional work.
@CoffeeNCode
20 күн бұрын
hey @AdegbengaAgoroCrenet, thanks for the kind words - really appreciate it 😍
OMG C# COURSE! I'm so happy to see you guys finally have set the deal with microsoft :D
@CoffeeNCode
Ай бұрын
I'm glad you're excited about the course - hope you enjoy it!
Good work ! It would be so nice to see a full Windows Forms tutorial
My favourite part of this course, besides being free, is that it takes the right amount of time to explain things. Not to the point of making it dull, or to the point of making it rushed What im saying is great work! Very good course.
@CoffeeNCode
Ай бұрын
Thank you for the kind words and I really appreciate the feedback 😍
lovee to see a C# course, thank you for this! 🙏🏽
@CoffeeNCode
Ай бұрын
Awesome - thank you! 🔥
You guys are always on point with what I am trying to learn with updated guides. Thank you for your service to this community❤ ❤
DUDE, just on time! I was just looking for resources to pick up C# as another language. Thanks!
@CoffeeNCode
Ай бұрын
I'm glad - hope you enjoy the course!
@WiserMiser
Ай бұрын
Why would you chose C# what is your current stack?
@ajusama648
Ай бұрын
same!
Now i can also contribute in developing GTA VI
@NobleAbsinthe
Ай бұрын
If only it was written in C#. It's written mostly in C++
@krox477
Ай бұрын
No
@xuyou8752
Ай бұрын
😂
@tidzej5400
Ай бұрын
@@NobleAbsinthemost AAA games are written in C++?
@3RR0RNULL
Ай бұрын
@@tidzej5400Almost everything is written in c++ tbh.
Ooh I'm so excited, love this! I've been wanting to improve my C#.
@CoffeeNCode
Ай бұрын
No worries - hope you enjoy the course 🔥
Thankyou so much. So glad to see c# more on your service x
@CoffeeNCode
Ай бұрын
No worries - I'm glad you're happy about the course 🔥
I'm from Brazil and I'm very grateful for this course, it's helping me a lot
@CoffeeNCode
3 күн бұрын
hey @ronaldo.wiggers nice to meet you! no worries, thank you for watching 😊
Thank you for all your wonderful material
Will learn, recived at right timing❤
it's great to see c# courses. thank u so much
@CoffeeNCode
Ай бұрын
No problems! Thank you for tuning in! 😊
This is an EXCELLENT course for absolute beginners, but there's even things to learn for intermediate C# developers like me as well, or if you're a programmer that's never written C# 👍
@CoffeeNCode
Ай бұрын
Thank you for the kind words - I'm glad you're enjoying the course! 😊
Yup, covered the basics. Good video as a reference.
@CoffeeNCode
Ай бұрын
Happy to hear you can make use of the course - thanks for the feedback 🔥
Happy to see c# course
Thank you so much for this. You are an absolute legend mate
@CoffeeNCode
6 күн бұрын
hey @paulrodriguez20, no worries - thank you for watching! :)
Thanks for the .net 8 course.I just wanted a updated course instead of .net 6/ .net 7 courses! thanks a lot! Lifesaver!
@CoffeeNCode
Ай бұрын
No worries, happy to support you with the course!
Thanks for the course. I was gonna start learning it for developing Autodesk Revit plugins😊
@CoffeeNCode
Ай бұрын
You're welcome! Good luck with the plugin development 😊
THANKS!!!
Great. Just what I needed. KZread recommended this video to me.
@CoffeeNCode
Ай бұрын
Awesome I'm glad to hear that 😊
Im grateful ❤❤❤❤
Thankyou uuuuuuu ❤
Thank you.
Wow, Thank you so much for sharing the knowledge
@CoffeeNCode
Ай бұрын
No worries, thank you for watching!
I'm proud of you guys.
Amazing work
Love u freecodecamp
Amazing, thank you for this course.
@CoffeeNCode
Ай бұрын
No worries, hope you enjoy the course 😊
Thank you for making this video! Want to lean C#
@CoffeeNCode
Ай бұрын
No worries, happy to help 😊please reach out if you have any questions during the course!
Cool video! I'd like to add that there are other investment options in copy trading platforms like Eledator as well.
Thank you Please we need course about entity framework and linq
OMG! Thanks! This is huge!
@CoffeeNCode
Ай бұрын
No worries at all - hope you enjoy the course! 😍
Very detailed, well explained, incredibly helpful. Really, thank you a lot, this is amazing
@CoffeeNCode
6 күн бұрын
hey @viper5326, no worries, thanks for watching 😊
Hah was just searching for this course ! Thank you so much
@CoffeeNCode
Ай бұрын
Just in time haha - hope you enjoy the course!
Wowza!!!!🎉🎉🎉🎉
i will update every day day 1 (2:08:25) day 2 (3:11:02)
❤Thanks for the effort
@CoffeeNCode
Ай бұрын
No worries - hope you enjoy the course! 🔥
Thanks for this course 👍
@CoffeeNCode
Ай бұрын
No worries, thank you for watching 🔥
Excellent
As long as it's not that gavin lon guy....this will be watchable
@christosbinos8467
Ай бұрын
His videos really are painful aren't they?
thank you for this course.
@CoffeeNCode
Ай бұрын
You're very welcome 😊
Thanks for this course
@CoffeeNCode
Ай бұрын
You're very welcome - hope you enjoy the course 😍
Please also add a Rust course as well in near future
Amazing, thank you!
@CoffeeNCode
28 күн бұрын
No worries, thank you for watching 🔥
this what i need, thank you
@CoffeeNCode
Ай бұрын
Awesome, I'm glad - hope you enjoy the course! 🔥
Thankyou sir ❤
@CoffeeNCode
Ай бұрын
You're very welcome 😊
Thank you very much for this course. Thanks a lot.
@CoffeeNCode
6 сағат бұрын
hey @kiplimoboor, no worries thank you for watching :)
Great course, thank you!
@CoffeeNCode
9 күн бұрын
hey @tmeryhewjsf35 no worries, thank you for tuning in 🔥
This certainly sounds good too, but I think it's still worth considering more reliable options like copy trading platforms such as Eledator, for example.
Love a good C# course.
@CoffeeNCode
Ай бұрын
I hope you enjoy the course!
@2ru2pacFan
Ай бұрын
@@CoffeeNCode thank you 🙏🏼 I just subbed to your channel 🔥
@CoffeeNCode
Ай бұрын
@@2ru2pacFan appreciate that thank you!
do ruby course pls ❤
Good teaching skills
@CoffeeNCode
Ай бұрын
Thank you, I'm glad you liked the course 🔥
Hello! Great stuff and thanks for sharing! Is this the same exact training as from the Udemy course?
@CoffeeNCode
19 күн бұрын
hey @Ricebow11 thanks for the question! The Udemy course is 3x longer, more tutorials, tasks between bigger videos, exercises for each section to consolidate knowledge with blank & completed projects to check answers and projects with object oriented code in there too :)
Thank you Aba.
@CoffeeNCode
Ай бұрын
No worries, thank you for tuning in 🔥
You teach very well ;) Thanks
@CoffeeNCode
17 күн бұрын
hey @KaerioMika thank you - I appreciate the kind words 😍
@KaerioMika
16 күн бұрын
@@CoffeeNCode Yeah the nice little details you give us everytime are really gold, like all the little details about the interface and what it show us to help etc, or the tips to highlight and pull expression directly to the watch list, etc. All these little details everywhere are so great to help us understand and appropriate the interface easily. Even your complete explanation from zero about about getter and setter is gold. Others don't explain all that completly. Big thanks, this was an instant subscribe for me and I learned a lot, even I watched other courses and even did the foundational in C# certification. You just make it easy.
@CoffeeNCode
16 күн бұрын
@@KaerioMika I'm glad you noticed the little details :D thank you for your feedback! Feel free to join the Discord server - the link is in my channel page at the top :)
thaaaaaaaaaaaaanks
Learning this so I can start learning Unity after and pursue game dev
@CoffeeNCode
9 күн бұрын
hey @yet_a-gamedev, awesome that sounds good - I wish you the best of luck!
C++ please sir
I want to say thank you to the guy in the comments who recommended Eledator to me. You've been very helpful. Thank you!
Thanks
@CoffeeNCode
14 күн бұрын
hey @mehmetaltinsoy525, no worries thank you for watching 🔥
guys, like guys! only 2.6k likes ??
@CoffeeNCode
Ай бұрын
Thanks for the comment - I'm glad you feel it deserves more recognition 🔥
Well, now that your explanations are addictive to understand, i need a advanced one 😂
@CoffeeNCode
Ай бұрын
Haha 🔥thanks for the kinds words - glad you like the course!
I would love it if u created a node js complete beginners tutorial, with all the current updates and hacks of node js. Please
❤
Hi, at 6:15:16 how to make to show the exceptions on hover. In my Visual Studio 2022, it just shows int Convert.ToInt32(string value) (+ 18 overloads)?
@CoffeeNCode
Ай бұрын
Hey there, thanks for the question. So when you are writing out the function it will show up with the overloads, but if you place your cursor on the "ToInt32" then it should give you the same popup as it did on the video!
@Valeri.Yanev98
Ай бұрын
Tried that, doesn't work. Probably bcs I use Monokai Theme? Idk, btw nice course, shared it!
@CoffeeNCode
Ай бұрын
@@Valeri.Yanev98 Ah strange, not really sure to be honest. Yeah maybe try remove the theme and see if that works. Awesome I really appreciate that thank you!
Can i later install the packages/tools later on if I need them?
@CoffeeNCode
Ай бұрын
Hey thanks for the question! Yeah you can search for the app "Visual Studio Installer" and you can add or remove any packages on there and also update Visual Studio from there too 😊
WoW
❤❤❤
switch slection condition work in Visual studio 2022????
@CoffeeNCode
29 күн бұрын
Yes switch still works in Visual Studio 2022, take this very quick example: int a = 1; switch (a) { case 1: Console.WriteLine("Hello"); break; }
Maybe its time to step a father forward, Demand for Computer Learning / Deep Learning with C# Coding/ Programing.
Is it possible a setup for Linux to follow the course?
@CoffeeNCode
Ай бұрын
Visual Studio isn't available for Linux, but you can try install VS Code and install C# extensions to try and mimic a similar setup to what is shown here - hope that helps!
the oop its so easy and less at least for me
OOP part?
@CoffeeNCode
Ай бұрын
It all starts from 6:50:14 onwards - hope that helps 😊
2024 start C#
I got the visual studio 2022 for mac but the layout just looks so different and so much worse
@CoffeeNCode
Ай бұрын
Yeah sadly it does look a lot different but hopefully you should still be able to follow along with the course. There is also Mono project which is another IDE for the Mac if you don't want to use Visual Studio, might be worth a try if you want 😊
😊😊
How do yall take notes for these courses?
@CoffeeNCode
Ай бұрын
Thanks for checking out the course and the question. I would personally take notes around the main syntax of the language, how to declare variables (int, string, arrays, lists etc), and keep going like that for the main chapters and on top of that I would recommend you start writing some code from the video in order to consolidate the knowledge you have and possibly from there you might have some more notes to add about each chapter Hope that helps, let me know if you have any follow up questions 😊
@samuelpena7124
Ай бұрын
@@CoffeeNCode thank you very much for your help 😃
@CoffeeNCode
Ай бұрын
@@samuelpena7124 No worries, glad to help!
@CoffeeNCode
Ай бұрын
@@samuelpena7124 No worries, happy to help, let me know if you have any other questions 😊
Eager to learn C#🔥 but can anyone answer please, learning C# and learning C++ and or Java which is best?
@dileep_hegde
Ай бұрын
It's not about which is best. It depends on what you are trying to do. C++ mostly for game development (Unreal Engine), Operating System and more C# for game development (Unity Engine), Backend Web development, desktop apps and more Java for Backend development, android development (Google recommends Kotlin) and more
@mohammedashik7173
Ай бұрын
@@dileep_hegdewhat about python , node js or java which is best
@MysteriousStranger08
Ай бұрын
It doesn't matter, whatever you can do in C# you can do it in Java and vice versa. Both are general scripting languages both popular with big businesses. You first need to identify what you want to do with it and pick one that plays for it's strength.
@MysteriousStranger08
Ай бұрын
@@mohammedashik7173Best for what? It's like choosing netween hammer, screwdriver or a vacuum . You first determine the type of work that needs to be done, you then pick a tool that's appropriate for it. If you're building a financial product where security is extremely crucial then java. If you're writing an automated script and have a strict deadline, then Python. If you're building a website and already know JS, then it make sense to pick Node.js and stick to same stack.
First 🎉
why do i not have to put readline at the end and th console still doesnt exit quickly?
@CoffeeNCode
16 күн бұрын
hey @rishabhlakhara9583, some command prompts are configured not to close as soon as the program is done, and some are. But the majority close automatically, so it's worth mentioning on the video just in case it happens to someone. It happens to me too, but feel free to remove it if it's not a problem for you :)
@rishabhlakhara9583
16 күн бұрын
@@CoffeeNCode okay thanks - seems like mine is configured not to close by itself then. im new to this so i was wondering why i dont have to put it all this while
@rishabhlakhara9583
16 күн бұрын
@@CoffeeNCode thanks for the course dude btw
@CoffeeNCode
16 күн бұрын
@@rishabhlakhara9583 Understandable, well thank you for the question. You're very welcome - thank you for tuning in 😍
Only using one program.cs? You need to teach some adding new classes and combining them.
Guys is that possible to finish this video between one to two days??
@CoffeeNCode
Ай бұрын
Hey thanks for checking out the course and the question. Yes I believe you can watch the entire course in one to two days but I would recommend following along and creating solutions and projects similar to ones shown on the video especially for the exercises, I would pause the video when the instructions have been read out and then spend some time trying it on your own and then come back to the video in order to see the final result and compare that with yours. Feel free to reach out to me directly if you have any questions. Hope that helps, let me know if you have any follow up questions 😊
@soccergamer3724
Ай бұрын
@@CoffeeNCode The question I asked is not I am as begineer , I mean if I am as graduated degree who learned before programming and oop and etc.. can finish within 2-3 to refresh myself in programming, in addition I have an interview job and that's why I am asking
@CoffeeNCode
Ай бұрын
@@soccergamer3724 Ah sorry for the misunderstanding, then yes in that case you will be able to watch it in one to two days 😊
C# te amor, por ti le echo ganas a la vida 🥵👌🏽
Visual Stuido is such a pain in the ass. It takes so long to load and then even longer to get into to start writting code. Is it really necessary? Why can't we use something easier to use like notepad++?
@CoffeeNCode
Ай бұрын
Visual studio is good to use because it gives you the syntax highlighting, and also without any extra effort you can just simply run the code. In order to write C# in notepad++, the writing would be fine but running it you would have to setup the compiler to point to your specific code file and then do that every single time you want to run your code. The benefits of Visual Studio is that it does it all for you, I understand it can be slow at times but I think the overall speed is faster with Visual Studio. Maybe you could create the project in Visual Studio, and then open Program.cs in notepad++ and when you're ready to compile and run it, you could switch back to Visual Studio. I personally recommend keeping it all in Visual Studio but I understand the performance issues - hope that helps!
@jackschitt7783
Ай бұрын
@@CoffeeNCode Thanks. It seems there just isn't a way to avoid using Visual Studio for this. Sucks for me. Noepad++: Open the program, start coding. THAT is fast, efficient, convenient, etc. Notepad++ has much better, easier to read, syntax highlighting than VS too.
@CoffeeNCode
Ай бұрын
@@jackschitt7783 Yeah fair enough, it's hard to avoid Visual Studio with compiled languages like this, whereas things like HTML/CSS/JavaScript etc can be wrote in anything and simply ran in the browser so using tools like Notepad++ or Visual Studio Code works perfectly for them situations
Is this enough ? I mean after I do this course will there be still some topics left out ?
@schrixx2717
2 күн бұрын
There are of course more niche topics that haven't been explored but this definitely gets you going in the beginning. After this you should try doing projects which will challenge you and allow you to learn more. You will likely learn the more niche topics passively as you use C# more.
@CoffeeNCode
6 сағат бұрын
@@schrixx2717 agreed 100% - thanks for your input 🔥
@CoffeeNCode
6 сағат бұрын
hey @anonymus5041 if you want more C# coverage, feel free to check out the Udemy course as it's a lot longer and covers more topics with many more exercises on there too
Yeah, 3 different browsers and that website refuses to download visual studio at all for me. Microsoft support is useless.
I wish these courses went beyond learning the language basics. An 8 hour course on how to make a Windows GUI notepad-like text editor program with DLL libraries (using pre-made and creating my own), user-specific persistent settings, drag-and-drop file loading, EXE embedded files, and proper installation/uninstallation using the windows registry.
First
First comment 😂
At 6:10 why do we want to use the one that's only on Windows? I have a guess (perhaps the one that runs on more platforms is more limiting because it has to use only features that are universal, so the lowest common denominator?), but I'd like to know what the reasoning is.
I get an error with the Convert.ToDouble() line and bellow. Typed it out letter by letter the same but can't get it to run at all. [Solved] I needed to replace the "." with a ",".
Good Content ...... But some topics are missing like delegates, events, generics, attributes, properties, nullable types, anonymous functions, etc
*Жуть, 49 минут, для объяснения базовых вещей.* _А ещё дольше разжёвывать не мог?_
Where is networking