C# Tutorial
HTML-код
- Опубликовано: 24 авг 2024
- Get the Code Here : goo.gl/CPivLE
Best C# Book : amzn.to/2iMArkU
Support me on Patreon : / derekbanas
MY UDEMY COURSES ARE 87.5% OFF TIL January 8th ($9.99)
➡️ Python Data Science Series for $9.99 : Highest Rated & Largest Python Udemy Course + 56 Hrs + 200 Videos + Data Science bit.ly/Master_...
➡️ C++ Programming Bootcamp Series for $9.99 : Over 23 Hrs + 53 Videos + Quizzes + Graded Assignments + New Videos Every Month bit.ly/C_Cours...
➡️ FREE 15 hour Golang Course!!! : bit.ly/go-tuto... (100 Available)
You guys asked for it and here I begin my large C# tutorial which will eventually cover Xamarin and game development. We start by covering how to install Visual Studio and Xamarin. Then we look at Namespaces, Main, Input, Output, Loops, Command Line Arguments, Arrays, Data Types, DateTime, TimeSpan, BigInteger, Formatting, Strings, String Functions, Functions and much more.
Thank you to Patreon supporters like the following for helping me make this video
cottageindustriesbuild/
jaryd remillard : instagram: @distant_admiration
bugreplay.com
@kyleaisho
@thetwistedhat
vjFaLk
jaryd remillard : github.com/Yea...
Learn in One Videos for Every Programming Language
Subscribe to Bookmark them: bit.ly/2FWQZTx
C++ : ruclips.net/video/Rub-JsjMhWY/видео.html
Python : ruclips.net/video/N4mEzFDjqtA/видео.html
Java : ruclips.net/video/n-xAqcBCws4/видео.html
PHP : ruclips.net/video/7TF00hJI78Y/видео.html
MySQL : ruclips.net/video/yPu6qV5byu4/видео.html
JavaScript : ruclips.net/video/fju9ii8YsGs/видео.html
C# : ruclips.net/video/lisiwUZJXqQ/видео.html
HTML5 : ruclips.net/video/kDyJN7qQETA/видео.html
CSS3 : ruclips.net/video/CUxH_rWSI1k/видео.html
JQuery : ruclips.net/video/BWXggB-T1jQ/видео.html
TypeScript : ruclips.net/video/-PR_XqW9JJU/видео.html
ECMAScript : ruclips.net/video/Jakoi0G8lBg/видео.html
Swift : ruclips.net/video/dKaojOZ-az8/видео.html
R : ruclips.net/video/s3FozVfd7q4/видео.html
Haskell : ruclips.net/video/02_H3LjqMr8/видео.html
Handlebars : ruclips.net/video/4HuAnM6b2d8/видео.html
Bootstrap : ruclips.net/video/gqOEoUR5RHg/видео.html
Rust : ruclips.net/video/U1EFgCNLDB8/видео.html
Matlab : ruclips.net/video/NSSTkkKRabI/видео.html
Arduino : ruclips.net/video/QO_Jlz1qpDw/видео.html
Crystal : ruclips.net/video/DxFP-Wjqtsc/видео.html
Emacs : ruclips.net/video/Iagbv974GlQ/видео.html
Clojure : ruclips.net/video/ciGyHkDuPAE/видео.html
Shell : ruclips.net/video/hwrnmQumtPw/видео.html
Perl : ruclips.net/video/WEghIXs8F6c/видео.html
Perl6 : ruclips.net/video/l0zPwhgWTgM/видео.html
Elixir : ruclips.net/video/pBNOavRoNL0/видео.html
D : ruclips.net/video/rwZFTnf9bDU/видео.html
Fortran : ruclips.net/video/__2UgFNYgf8/видео.html
LaTeX : ruclips.net/video/VhmkLrOjLsw/видео.html
F# : ruclips.net/video/c7eNDJN758U/видео.html
Kotlin : ruclips.net/video/H_oGi8uuDpA/видео.html
Erlang : ruclips.net/video/IEhwc2q1zG4/видео.html
Groovy : ruclips.net/video/B98jc8hdu9g/видео.html
Scala : ruclips.net/video/DzFt0YkZo8M/видео.html
Lua : ruclips.net/video/iMacxZQMPXs/видео.html
Ruby : ruclips.net/video/Dji9ALCgfpM/видео.html
Go : ruclips.net/video/CF9S4QZuV30/видео.html
Objective C : ruclips.net/video/5esQqZIJ83g/видео.html
Prolog : ruclips.net/video/SykxWpFwMGs/видео.html
LISP : ruclips.net/video/ymSq4wHrqyU/видео.html
Express : ruclips.net/video/xDCKcNBFsuI/видео.html
Jade : ruclips.net/video/l5AXcXAP4r8/видео.html
Sass : ruclips.net/video/wz3kElLbEHE/видео.html
Thanks, I like your work SO MUCH!!! You are LEGEND. Keep going and stay motivated!
I only have one question : How long does it take you to learn all of these
I know Im randomly asking but does someone know a trick to log back into an Instagram account..?
I was stupid lost the login password. I appreciate any help you can give me
@Miller Stefan instablaster =)
@Colson Stephen i really appreciate your reply. I got to the site thru google and I'm trying it out now.
Takes quite some time so I will reply here later with my results.
You are a criminally underrated RUclipsr in the programming community. Thanks for everything.
Thank you for the compliment :) I'm happy to help
Yes MonoGame will be covered probably before Unity
Not quite underrated, anymore. He has a very decent subscriber base, of 500k+, which is, quite telling of his popularity. I don't think there is any other channel with a higher subscriber base, except those frivolous "opening the wrapper of a toy" kind of videos.
I decided to work on a project that I believe will benefit millions of people. I decided to do it with c# and I have been subscribed to you for a while and Booyah! Here you are uploading a c# tutorial. You're a good man Derek, a good man. Thank you, sir.
*****
You don't think I'm going to tell you, lol.
Thank you very much... I've had a phobia of C/C++/C# since my master's days where I learned Ada, Pascal, assembly, etc. Saw some terrible spaghetti code in C and thought, "No way I wanna learn that..." Plus, once you get into Windows programming it gets quite complex. You've re-energized me at 47 years old! I'm excited. Thanks!!!
That's awesome! I'm very happy that you are enjoying the videos
Let the plebs see the light. C# best language 10/10.
Edit: Why you ask? Well here's stuff you can do with it:-
1. Android/iOS applications through Xamarin
2. Native Windows applications
3. Windows mobile/Universal windows applications
4. Web sites through ASP NET
5. Games through Unity
Plus it has a couple of cool features such as:-
1. LINQ
2. Extension Methods
3. Properties
4. Lambda/Expression Bodied
5. Conditional Access Operator and Null Coalescing Operator
6. Easy String Interpolation -> $"Hello I am {name}. Welcome {guestName}"
I personally stopped using Java for C#
i wase Delphi devlopper and i Stoped Using Delphi For Java because your tutorials in java, should i use C# ??
Haskell FTW
There's no such a thing as "the best programming language". End of story.
@lazic B.
Now you're talking. 100% agree.
I’ve watched all of the C# tutorials in these series! The best C# video tutorials I’ve seen so far!
Great instructor.
Subject matter expert.
Clear diction!
MUST WATCH!!!
Thank you for the wonderful compliments :)
aww yiss! Always wanted to learn C Hashtag.
That's funny :)
or C pound sign, which is how it's normally describe.
Ah, one must not forget C octothorpe.
lmao it's C sharp as they call it :P
no its not, it's officially C Hashtag (at least that's what I'll be calling it from now on)
5:03 - 5:33 There is another solution: You can prevent it, by pressing Ctrl + F5 (on Windows), but I recommend your solution.
I like that your tutorials get to the point instead of teaching all the basics from scratch. Maybe not so good for a beginner, but for people with some experience it's really useful when trying to learn a new language.
Thank you I tend to make tutorials for intermediate programmers because it feels like few people do that
You just made my day. I love your tutorials and I was hoping for C# series because it is my favourite programming language and you always explain everything in such detail. Great job Derek! You are awesome.
Thank you very much :) I'll do my best to cover everything. I as well grew to love C# over the last 2 years
// Other Data Types
// byte : 8-bit unsigned int 0 to 255
// char : 16-bit unicode character
// sbyte : 8-bit signed int 128 to 127
// short : 16-bit signed int -32,768 to 32, 767
// uint : 32-bit unsigned int 0 to 3,294,967,295
// ulong : 64-nit unsigned 0 to 18,446,744,073,709,551,615
// ushort : 16-bit unsigned int 0 to 65,535
should be negative 128 for sbyte : 8-bit signed int -128 to 127
Right on time! I'm starting to develop my own apps in C# for school now, and I love it! The biggest problem I have right now is that I have to figure most things out for myself... These vids are hopefully going to be a great help 😊! Thank you Derek for taking the time to make these videos ^.^
You're very welcome :) I'll do my best to get past the language specific stuff and to apps soon.
this one is better than a course I payed for. More useful details, clearer and straight to the point with less time spent.
Thank you for the compliment 😁
This is a great channel. I got a chuckle every time you said "Original Ignore Case" when talking about strings
Thank you :) It is very nice to know I make people laugh some times
You are hands down the best teacher on RUclips u know how to make stuff engaging and even an Idiot like me can understand it thanks Derek
Thank you for the nice compliment :)
You can now get Visual Studio on Mac if people are wondering!
you can but its kinda trash
It's literally a rename of the ide he recommended at the beginning of the video.
new year new hope!!! Thank you, Derek! And wish you and your family have a very happy new year!
I wish you and your family a Happy New Year as well :)
Perfect for someone who doesn't want to know what a variable is and all the basic stuffs. Loved the content. :)
Thank you :)
in case we get extra points for paying close attention, "ordinal" not "original". 35:44
I was exactly looking for a not-for-beginners C# tutorial
I'm very happy to be able to help :)
I just wanna thank you so much, you listen to your community and you actually reply. I love all your videos, and they've been helping me a lot
Thank you very much :) I'm very lucky to have such an awesome community! I think it is very cool that people ask me questions and I enjoy helping in any way that I can.
dedZombie is
4 years later and this is still super helpful!
80 "thumbs down". Why? They're probably 80 people who still have VCRs with the clock blinking with "12" because they couldn't figure out how to set the time.
If you already know C# and want a quick reminder then this definitely the tutorial for you!
I like using:
if (System.Diagnostics.Debugger.IsAttached) Console.ReadLine();
Great content Derek!
Hamzy K no problem :)
I think you don't wanna die in this life. You are just proving this wrong "You can do anything but not everything".
Thank God I born after you. Hehehe
I believe we were all put on this planet for a reason. I wish you all the best :)
Finally some interesting C# tutorial, TNX!!
i hope you are doing well mr banas
thank you so much for giving me confidence to learn to code
wow dude are you for real .....ted-talks should come to you to ask you to give a presentation. Man you are an inspraition to many. hats off. Moreover i think it would be great if you can do F# also along with this series.
Thank you for the nice compliment :) A learn F# in one video is coming soon
-:)
F hashtag
C#m and F#m
I started watching your videos 4 years ago which prompted me to change careers. I use the stuff you've taught me everyday. Now I get to pass these videos on to my team so they can learn C# and maintain the apps I write. Thanks!
Thank you for taking the time to tell me :) I'm very happy I could be of help.
OMG Derek, I am just now reading a book on C# - The C# Programming Yellow Book. This series is just what I need!!!
I'm happy I could help :)
Finished this course, looking forward to the rest! Thanks a ton!
the tutorial monster strikes again!
... you look away for just a moment and whoop, there's 18 parts in the queue to watch :D
I'm confident that I'll enjoy each single one of them as much, as I enjoyed all of your brilliant tutorials I've watched so far. thanx for sharing them with the interworld!
Thank you for the compliment :) I've been on a groove since the beginning of the year.
...fun thing to hear someone 'being in the groove' after some time... used to use that myself in the oldschool days as much as anyone of the headz in my hood.
however, over the years I have become subtly instilled with the idea of rather being 'in the zone' ...well, mainly by the nerd-ish (in large part professional) half of my social environment...
so, yeah! keep on groovifying us ^^
"Gold", thanks Derek...getting the IDE ready for Xamarin, cool!
Thank you for the Gold :) I appreciate it
Very good! The only comment I have is that you twice said "OriginalIgnoreCase" for "OrdinalIgnoreCase."
C# is installed with Windows OS so there is no need to install it
but in that case code must be written in notepad and built (compiled & linked) from command line
Love these videos, they are so packed with information and you are straight into it from the get-go.
Thank you :) I try not to waste your time
What are arguments and what does passing arguments mean?
Also is parsing used to turn strings into other datatypes? And why would you need to use parsing?
I agree you are one of the best teachers I have seen, learning so much from you. Thanks
Thank you for the nice compliment :)
"Click on that and the world's awesome, alright back into the Windows world (sigh)...." made me laugh
That's funny :)
Fast and efficient, you are great! Thank you!
Just watched a 40 minute programming video with no prior knowledge of any kind of computing just to find out the day I was born: Saturday.. success 😎
Gold! Awesome video, really refreshed my C# knowledge!
Thank you for posting Gold :)
I guess I should call you master. Your tutorials cover so may topics and really easy to understand. Accept me as your student, master
You Rock Derek!
I try to do my best :)
Thanks for all the love man.
Thank you very much :)
I love the series! One concern, however. This is not, by all means, for beginners! I honestly got into this just to kinda figure out and learn C# Syntax but got blasted with Tsar Bomba to see you already at Arrays and for loops. For people like me with experience in other languages, its nada, but def, not beginners. I overall loved it(again i must say), This was EXACTLY what I needed, and Thank you so much! U got my subscription, and support! Keep it up!!
Thank you :) Yes I tend to make videos for people that are not beginners to programming. I figured that that is what most people do, so I make videos like this to be original
love it'
Love you Derek!
Love you back :)
I love OSS and I love that Microsoft not only opened up to OSS, but also plays an active role in the Open Source World now.
I hope dot net core becomes the standard!
Thanks Derek for keeping me motivated and educated!
I'm happy to help :) Yes Microsoft has been doing a spectacular job as of late
Love your videos!! & I love C#, cant wait to see whats gonna be coming up!
Thank you :) It should be fun
i dont really get much about what is happening but im going with it, hopefully i am going to understand more in the future
Please ask any questions that you have
@@derekbanas no its okay thank you, im just a noob and you know how beginners are, i will google everything i need.
Hello, Mr. Banas. You're nothing less than a teacher to me and I thank you for your content.
Thank you very much :)
Finally! I've waited so long for your C# series!
I hope it helps :)
I have no plans of becoming a software developer but I am very much interested in online education, the delivering of most of all school and college courses via the internet and other computer based media. They are great because the student can go back and review again and again. Many colleges are hopping on to the bandwagon because they realize that is a good part of the future, although not all subjects can be efficiently taught over the internet. the mistake they make is that they use the professor to do the talking and often these professors fail because they make it all look very dry and boring. They just cannot deliver their lecture. You seem to have overcome that deficiency and I wish there more online teachers like. You keep me interested. In fact colleges and schools should have their subjects delivered using professional narrators, such as the ones used in the series " How it is made" on TV. Once they have the script they can do a much better job. One suggestion: may be keep every tutorial no more than 15 minutes.
Thank you for your input :) I'm happy that you find the tutorials interesting. I need to step up my game and plan on doing more to keep students interested. I'll do my best to shorten the videos.
If you make your product attractive and useful there are over a billion potential customers.
Hey Derek, you should check out the new string interpolation in C#6. Instead of ("Arg {0} : {1}", i, args[i]), you can say ($"Arg {i} : {args[i]}").
Thank you for bringing that up. I actually start using it around part 5
Cool :)
Tnx for the best c# tutorial on youtube
Thank you for the nice compliment :)
Dang it! I just spent 50 bucks on a C# book few minutes before finding this tutorial. Returning my book in 3..2..1..
That's funny :) Glad to help save you some money
Thank You. This is gold
I'm happy I could help :)
the best teacher! i follow ur tutroial till end helping me alot to understand c#, thanks for everything bro
Thank you very much for the compliment and for watching the whole video :)
Hi Derek, I am a huge fan of your java tutorials because you explain things very thoroughly and clearly. I am a senior in high school who has only ever had experience in java. I'm going to be starting college in the fall and I'm looking for a new language to start learning but there are so many out there. I don't know which ones are relevant for the oncoming years in college.
It depends on what you want to do. If you are going to school no doubt you'll see Java, C, C++, maybe Haskell and C#. If you do anything with the web you'll learn about PHP and JavaScript. All are great languages
The Legend Derek Banas !
Thanks
You're very welcome :)
And they say newboston is the best lolll..Give me a break. Keep it up man. YOU are the best!
Thank you for the nice compliment :) He is still the biggest, but I hope to get there some day
Just started great tutorial.
Thank you very much :)
Hey Derek, I just wanted to thank you for your amazing videos , i've been able to learn alot with them, keep the amazing job pls :D
Thank you :) I'm very happy that they have helped
Derek you are my messiah thx. Support from Iran
Thank you very much :) I'm honored to be able to help.
(Skipped a bit) 22:40: Why not use the Convert.ToWhatever("2");? Is there an important difference?
Yes you can use convert. I tend to try and cover every way to do things in this video. In the next I'll talk about casting as well
no wonder you my favorite you-tuber of all times, one of the reason i come back to learn more, good content as always , even for me who is revising.....
Nice tutorial, it's fast but very precise. I wish I had found your channel earlier, there's so much useful content here :)
Thank you for the nice compliment :)
love your tutorials!
Thank you very much :)
have you ever considered doing video solutions to problems on sites like hackerrank?
i'd personally love to see a video from you, attempt the problem, and then have you explain an approach/solution. i know those sorts of sites give the code/answers, but often if you don't understand the logic it's hard to follow.
eitherway, agree with people on here - you are definitely way too underrated. have recommended your stuff on various forums in the past.
Thank you for the recommendations :) I haven't tried a coding competition in a while unless you consider what I do here which is basically create whatever people challenge me to make. It might be fun to give that a go in a few videos. Thanks for the idea.
it's for selfish reasons really :)
i'm kind of at the point where i know a decent amount of java, but never studied discrete maths or anything to help me learn more complicated algorithms.
most of the recommended books are also kind of a step too high for me!
Words of Gold!!
Thank you :) I try to do my best
normally you would have an array initialized in code not from settings, and how do you change the content of a string with just a variable?
if you asked me I would do:
console.writeLine("Arg {" i "} : {" args[i]);
which does look messy but way more logical then changing context of a sting
in case you are wondering, yes I am a C++ programmer and I find this spinoff very strange and confusing...
Don't know how to appreciate that.
Great Tut on a great subject
Thank you :) More are coming
i love it how you don't comment every single thing like others do, which makes the vids 10 hours long, boring and unnecessary
Hi Dereck. Thank you so much for time and effort. I can't find any words better than Thank you. You are a fabulous man. Can you please do a tutorial on WPF MVVM?
Thank you for the nice compliment :) Yes I most definitely will cover that topic
Wow these is what have been waiting for. Sir Derek i will love to see your android app for all your tutorial(offline and online)so as we can learn on the go. Because ur tutorial are complex need more time on it and will generate high source code from all ur source code from newThinkTank
When I start making apps, which will be soon, I'll make one for my site
You're the king!
Thank you :) I do my best
Just great! Thanks a lot!
Thank you :)
Can you do a C# tutorial for making a website that would be really helpful
quick learning a new language, nice!
I'll cover the basics as quickly as possible so I can get into the fun stuff
I'm looking forward for that.
Great work!
:)
I will be happy to see Xamarin and ASP.NET series.
There are coming soon
you sound professional teaching guy... I like your style and kindly ask for simple examples for learning this lesson. thank you.
Thank you for the nice compliment :) I'm happy I could help
You are definitely the king of programmer!! could you upload some tutorial about Data structure and Algorithm in Python?
Thank you for the nice compliment :) I'll see what I can do
Thank you and keep up the good work!
I'm happy to be of help :)
All these videos are so helpful. Could you do one going over Model View View Model (MVVM)?
Thank you :) Yes that is coming soon
Please go deep into it when you get the chance, thanks again
nice tutorial, looking forward to Xamarin :)
Thank you :) It will start soon
great tutorial , Thx a lot , u did a great job
Thank you happy I could help
Are you kidding? I love Mad Libs!
That's funny :) I didn't know if anyone remembered them
You asked a while back about new topics... I half joking put in for quantum physics, but now I've started learning about quantum computing after realising what it could really achieve. I already know you have a talent for get past the mental blocks I struggle with so how about it?
That's funny I'll see what I can do. I'm a bit tied up with electronics and Japanese at the moment :)
Derek Banas ... Lol, taking it easy then. i've broken a few bones in my foot so I've been looking for the next thing to learn. I figure Quantum computing should take my mind off it....
Thank you for the good article
Happy to help :)
Amazing. Thank you!
Thank you for the nice compliment :)
This video would be even more awesome if you gave us some exercises/tasks towards the end of it. But anyway - good job! And thank you for the time and effort it took to create this.
Thank you :)
Console.WriteLine( " Pretty cool stuff ") .
I like when you say it x) Yeah it is very cool stuff Derek, Thank you so much for your c# tutorial .
I'm happy that you like them :)
On to number 2 lesson
such great series
Thank you :)
Did everything you did at 9:24 and it didn't work for me. Just says "yellow world" and nothing else
Finally c#. thank youuuu
Sorry for the wait. I'll do my best to cover everything
Derek Banas You are a true gentleman Derek.. Never a need to apologize. We know it's a long road to walk doing videos on EVERYTHING for EVERYONE. I'm waiting for the "Learn to take a break: In one video" title..🌴 You deserve great things my friend..
Thank you :) You are very kind
Great as Always!!! Nice job again... Let me ask you... the video "C# in one video " cover how much of this big tutorial?
Thank you :) I'll cover most of what is in there in about 4 or 5 of these videos. I'm going into more depth in this one though and I'll make some real programs
Hi derek love your tutorials as always,
I've been programming for coming up to a year now and started with c# doing a comp sci course, i recently switched to java to follow your tutorials as i couldnt find many good c# tutorials even though they're similar would you recommend java at first for the fact that is completely cross platform or c#?
as always your videos are amazing big fan thankyou!
Thank you very much :) Java is a great language. I only switched to C# because I needed to be able to develop cross platform mobile apps and C# is the best for that. Both languages are very similar so it is easy to switch back and forth
would you rather be an inventor or a programmer?
Why not do both? Aside from electronics, I'm not very skilled with anything mechanical though.