- C# Introduction
C# (C Sharp) is a programming language that you can use to create applications. It is an evolution of the C and C++ languages created by Microsoft specifically to work with the .NET platform. Actually, C# is modified Java. Writing code in C# is easier than writing in C++ because the language syntax is simpler. Sometimes C# is more verbose than C++ partly because C# is a typesafe language and C++ is not. Typesafe means that once data has been assigned to a type, it cannot transform itself into another type. Typesafe languages are easier to debug and overall more robust.
Videos
If you like watching videos as I do, check out Mosh’s one-hour video on YouTube called C# Tutorial For Beginners – Learn C# Basics in 1 Hour. It’s one hour and ten minutes long.
C# Series of Posts Organized by Topic
We have a few groups of blogs on C#. They are grouped into their own series. Generally, the posts at the top of the list are more basic than the ones at the bottom, with perhaps only one or two exceptions. We also have a C# Cheat Sheet.
- Getting Started
- Primitives and Expressions
- Complex Types
- Lists
- Flow Control
- Functions
- Classes Introduction
- Classes Intermediate
- Class Association
- Inheritance
- Interfaces
- Polymorphism
- Generics
- Delegates
- Lambda Expressions
- Events
- Extension Methods
- LINQ
- Nullable Types
- Windows Presentation Foundation (WPF)
- Asynchronous Programming
- XAML
At this site is a very brief introduction to Visual Studio Community, the Integrated Development Environment (IDE) for developing programs with C#. The post is called Visual Studio Community 2015.
For the .NET Framework, C# is the best language to use. It was developed from the ground up to work with .NET and C# evolves into a more powerful language with each new release of .NET. C# can make use of every feature that the .NET Framework has to offer.
Visual Studio is the IDE used to create applications in C#. When you use VS to develop applications you do so by creating Solutions. A solution is more than just an application. Solutions contain Projects, which might be WPF projects, Web applications, and so on. Solutions enable you to group together related code in one place, even if it will eventually compile into multiple assemblies in various places in your hard disk.
Some of the key things to know about in C Sharp:
- C# is case-sensitive
- Statements terminate with semi-colons
- Code is put in code blocks { }
- Inline comments start with // and end with newline
- Block comments start with /* and end with */
- XML comments start with ///
- C# is a type-safe language