C# Introduction


This entry is part 1 of 1 in the series C# Introduction
  • 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.

  1. Getting Started
  2. Primitives and Expressions
  3. Complex Types
  4. Lists
  5. Flow Control
  6. Functions
  7. Classes Introduction
  8. Classes Intermediate
  9. Class Association
  10. Inheritance
  11. Interfaces
  12. Polymorphism
  13. Generics
  14. Delegates
  15. Lambda Expressions
  16. Events
  17. Extension Methods
  18. LINQ
  19. Nullable Types
  20. Windows Presentation Foundation (WPF)
  21. Asynchronous Programming
  22. 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