C# Programming - Wikibooks, Open Books For An Open World
C# Programming - Wikibooks, Open Books For An Open World
C sharp logo
Introduction
Main introduction: C Sharp
Programming/Foreword
Copyright has to be used by asking
permission. Copyright lasts longer every
new time.
Basics
Classes
Namespaces
Giving your code its own space to live in.
Classes
The blueprints of objects that describes
how they should work.
Objects
Cornerstones of any object-oriented
programming language, objects are the
tools you use to perform work.
Encapsulation and accessor levels
Explains protection of object states by
encapsulation, or the bundling of an
object's data and functionality.
Advanced Topics
Inheritance
Re-using existing code to improve or
specialize the functionality of an object.
Interfaces
Define a template, on which to base sub-
classes.
Delegates and Events
Learn about delegates, anonymous
delegates, lambda expressions, and
events.
Abstract classes
Build partially implemented classes.
Partial classes
Split a class over several files to allow
multiple users to develop, but also to
stop code generators interfering with
source code.
Generics
Allow commonly used collections and
classes to appear to have specialization
for your custom class.
Extension methods
Extend the functionality of existing
types.
Object Lifetime
Learn about the lifetime of objects,
where they are allocated and learn about
garbage collection.
Design Patterns
Learn commonly used design
methodologies to simplify and/or
improve your development framework.
Examples
K-Means++
Keywords
C# Keywords
abstract as base
byte case catch
class const continue
delegate do double
event explicit extern
fixed float for
if implicit in
internal is lock
new null object
override params private
readonly ref return
short sizeof stackalloc
struct switch this
try typeof uint
unsafe ushort using
void volatile while
ascending by descending
group in into
on orderby select
External links
C# Tutorial (http://csharp.net-informatio
ns.com)
An Introduction to Mono Development
(http://www.devx.com/opensource/Artic
le/31741/1954) by Andrew Troelsen
C# Environment setup (http://msdn2.mi
crosoft.com/en-us/vcsharp/default.asp
x) Visual C# environment setup details
from MSDN
C# FAQ (http://blogs.msdn.com/csharpf
aq/) C# FAQ, Blogs and Forums.
C# Language Specification (http://www.
ecma-international.org/publications/sta
ndards/Ecma-334.htm) download page
at ECMA
C# Programming Tutorial (http://csharp.
net-informations.com)
C# Programming Tutorial Collection (htt
p://pickatutorial.com)
C# Yellow Book (via pdf download) (htt
p://www.csharpcourse.com/)
Microsoft Visual Studio Community
Edition (https://visualstudio.microsoft.c
om/vs/community/) : A free
development environment created by
Microsoft.
Mono Project (http://www.mono-project.
com/Main_Page) : C# Development
Environment for Linux, Windows, and
other platforms.
Retrieved from
"https://en.wikibooks.org/w/index.php?
title=C_Sharp_Programming&oldid=4219242"