C#
You can learn to code in C# painlessly and without the geek-speak. Well, with very little geek-speak and term definitions (in human words) when needed.
- About
- Walk-thru
- Quick reference
- Projects
C# is a general-purpose, object-oriented, type-safe programming language. Designed for programmer productivity, the C# language is platform-neutral, although written to work well with the Microsoft .NET Framework.
C# is a rich implementation of object oriented programming (OOP) language, which includes
encapsulation, inheritance, and polymorphism.
Encapsulation: creating a boundary around an object to separate its public behavior from its private implementation details.
C# is primarily used for writing code that runs on Windows platforms. However, it can be used to write cross-platform code in the following scenarios:
Inheritance: enables you to create new classes that reuse, extend, and modify the behavior that is defined in existing classes.
Polymorphism: the characteristic of being able to assign a different meaning or usage to something in different contexts - specifically, to allow a variable to refer to more than one type of object.
C# running on a server can be used to produce HTML that can run on any platform. (ASP.NET)
C# code may run on a runtime other than the Microsoft Common Language Runtime (MCLR). Example: Mono project, with its own C# compiler and runtime ... on Linux, Solaris, Mac OS X, and Windows.
C# code may run on a host supporting Microsoft Silverlight (for Windows and Mac OS X).
C# is case-sensitive.
Compiler downloads:
Mono
Visual C# 2010 Express: You must register to obtain a free product key for ongoing use after 30 days.
The Main method designates the program’s entry point.
Example:
static void Main(string[] args)
{
code
}
********************
Please note: Console is a built-in class.
The console class represents the standard input, output, and error streams for console applications. This class cannot be inherited.
static void Main(string[] args)
{
Console.WriteLine("Wait for it...Hello World!");
}
Almost english, isn't it? We just told the computer we want it to output (write) a line of text saying:
Wait for it...Hello World! >>> Tribute to Barney of How I met your mother.
Welcome to Gtekk.
This section contains a Quick reference of code elements.
This section contains examples of various layouts with step-by-step instruction.