Showing posts with label Learn gaming in c sharp chapter 2. Show all posts
Showing posts with label Learn gaming in c sharp chapter 2. Show all posts

Tuesday, March 15, 2011

Learn gaming in c sharp chapter 2

Learning the basics of a program
using System;
using System.Collections.Generic;
using System.Text;

namespace Tutorial1
{
    class Program
    {       
        static void Main(string[] args)
        {
           
        }
    }
}
The first thing you might notice is the different colors.  Dark blue signifies a code/command that C# recognizes.  Light blue indicates a class, while the regular text is for user defined names.

Skipping those "using" statements for a moment you'll see:

namespace"namespace" is an equivalent to a folder in windows.  Everything in that folder is accessible if that "folder" is open.  Just like in windows a folder can folders inside of it; Namespaces can have other namespaces and classes inside of it as well.  While we'll cover this more later on, it just good to remember that comparison.

classClass is a dual purpose object.  It too acts somewhat like a "folder", however instead of just holding more "folders" it holds methods, variables.... pretty much everything belongs inside of a class with only a few exceptions that we'll cover much later.  Classes too will be covered in depth later.  Just remember that while the class is accessible from the namespace, the things inside of the class are only accessible when the Class is "opened".  Don't worry if this is over your head right now.  It will be made clear in lessons to come.

AngularJS Basics - Part 1

                                                                  AngularJS What is AngularJS ·          Framework by googl...