 Hey everybody, it's Brian, and welcome to our second C-Sharp tutorial. Go ahead and go File New Project, and then just choose Console Application. We're going to make the obligatory Hello World program. Whenever you learn a new language, the first thing they want you to do is write a Hello World. Now, you may see me typing, and you're probably wondering, how is he typing so fast? See, when you start typing that little window pops up, that's called IntelliSense. And you can just either double-click on Console, or you want to let's select it, you can press Tab, and it'll write it out for you. And when you press Dot, it brings up the properties for that object. So we're just going to type Read. So all we've added are two lines to our Console application. Write line, Hello World, and Read. Let's go ahead and press Control-S to save. Or I'm sorry, Save As, and we're just going to call this C-S02, and let's put this in whatever location you're going to be saving your projects. Make sure you're all nice and save there. And let's run this and see what happens. You notice there it says Hello World. Well, we flew through that very quickly, so how did we get to that step? Well, first thing, when it creates our Console application, it adds all these using. Now what is this? These are things that we're importing into our program. There's a lot of stuff going on under the hood that we didn't write. Microsoft wrote it for us. For example, System.Collection is generic, Systems.Link, Systems.Tech. I don't expect you to know what any of that stuff is. You'll learn this in future tutorials just for the time being. Kind of click the I believe button and believe that we are importing things. And then Namespace, Console Application 1. Think of a namespace like an apartment. The trick with these namespaces is there can only be one of a specific type in there. For example, we have this program. There can only be one program in this namespace. Don't get hung up on the word program. This could be Fuzzy Bunny Slippers or Bob. We're just going to call it Bob for the time being. There can be only one Bob in your namespace. Now you can have a different namespace. For example, Console Application 2 or I Hate Fuzzy Bunny Slippers or whatever that can contain a Bob. But this namespace can only contain one Bob in this case we're calling it Program. Now a class. Class is a blueprint. Everything in .NET is an object. In order for it to be an object, it needs a blueprint, which is called a class. So say it with me. Everything in .NET is an object. That means everything in .NET is a class, or should say it derives from a class. And then we have this ugly looking static void main strings args. What is this thing? Well, that's the main entry point of your application. Static simply means there can be only one void, meaning it simply returns nothing. Main is the main entry point, and these are arguments. You can actually pass arguments into your program. You see these squiggly little blocks. C-sharp is actually a C style language, which means it uses these blocks. So there's some here, some here. These are called code blocks. For example, that's the namespace code block, and this is the class code block, and this is a function code block. And what that does is it determines the scope and the order of execution, things that we'll cover in future tutorials. For now, all you really need to understand is that you are importing things. You have a namespace, you have a blueprint, you have a starting point, and then you can manipulate the console using right line and read. And we're using read simply because if you, let's comment that out, notice the double slashes that comments it out, meaning this will not execute. It's the same thing as if it didn't exist at all. Run this. You notice how the window just appears and disappears almost instantly. That's because the program finished. It didn't have anything left to do. So we're going to say console read just to keep that window open when we run this. So that's all for now. If you like this tutorial, there are many more out on my website. And let me pull it up here real quick, www.voidrums.com, just click tutorials. And I've kind of got it categorized. Everything will be under C sharp. There's really nothing there because I haven't uploaded the videos yet. So I'll just choose a visual basic and just kind of click like a hello world. And you can see how there's download the source code. So I try to upload the source code for every tutorial and you can actually watch the YouTube video in the website. No, there's no banner ads or cheesy gimmicks or anything like that. If you do go to download the source code though, it will say please donate. I don't expect you guys to donate. That's more for businesses that are using this to teach their employees and things of that nature. So go ahead, go out to the website. Let me know what you think. Anyways, I gotta get going. This is Brian. Thanks for watching.