- 1 (Registered)
Introduction to the C# Language and the .NET Framework
C# is an elegant and type-safe object-oriented language that enables developers to build a variety of secure and robust applications that run on the .NET Framework. You can use C# to create Windows client applications, XML Web services, distributed components, client-server applications, database applications, and much, much more. Visual C# provides an advanced code editor, convenient user interface designers, integrated debugger, and many other tools to make it easier to develop applications based on the C# language and the .NET Framework.
The Visual C# documentation assumes that you have an understanding of basic programming concepts. If you are a complete beginner, you might want to explore Visual C# Express, which is available on the Web. You can also take advantage of books and Web resources about C# to learn practical programming skills.
C# syntax is highly expressive, yet it is also simple and easy to learn. The curly-brace syntax of C# will be instantly recognizable to anyone familiar with C, C++ or Java. Developers who know any of these languages are typically able to begin to work productively in C# within a very short time. C# syntax simplifies many of the complexities of C++ and provides powerful features such as nullable value types, enumerations, delegates, lambda expressions and direct memory access, which are not found in Java. C# supports generic methods and types, which provide increased type safety and performance, and iterators, which enable implementers of collection classes to define custom iteration behaviors that are simple to use by client code. Language-Integrated Query (LINQ) expressions make the strongly-typed query a first-class language construct.
As an object-oriented language, C# supports the concepts of encapsulation, inheritance, and polymorphism. All variables and methods, including the
Main method, the application’s entry point, are encapsulated within class definitions. A class may inherit directly from one parent class, but it may implement any number of interfaces. Methods that override virtual methods in a parent class require the
override keyword as a way to avoid accidental redefinition. In C#, a struct is like a lightweight class; it is a stack-allocated type that can implement interfaces but does not support inheritance.
In addition to these basic object-oriented principles, C# makes it easy to develop software components through several innovative language constructs, including the following:
- Encapsulated method signatures called delegates, which enable type-safe event notifications.
- Properties, which serve as accessors for private member variables.
- Attributes, which provide declarative metadata about types at run time.
- Inline XML documentation comments.
- Language-Integrated Query (LINQ) which provides built-in query capabilities across a variety of data sources.
C# Coding Seminar - Introduction
C# Coding Seminar 1 - C Sharp Basics
- Lesson 1 – A Hello World Application
- Lesson 2 – Variables and Data Types
- Lesson 4 – Challenge: Multiple Choice Questions
- Lesson 5 – Solution: Multiple Choice Questions
- Lesson 6 – Conditions
- Lesson 7 – Challenge: Passcode
- Lesson 8 – Solution: Passcode
- Lesson 9 – While Loops
- Lesson 10 – For Loops
- Lesson 11 – Challenge: Loop Counting
- Lesson 12 – Solution: Loop Counting
- Lesson 13 – Arrays
- Lesson 14 – Foreach Loop
- Lesson 16 – Functions: Return Values
- Lesson 17 – Functions: Taking Values
- Lesson 18 – Switch Statement
- Lesson 19 – Challenge: Student Manager
- Lesson 20 – Solution: Student Manager
- Lesson 21 – Collections
- Lesson 15 – Functions
- Lesson 3 – Inputs
C# Coding Seminar 2 - Programming in C Sharp
C# Coding Seminar 3 - Errors and Debugging
C# Coding Seminar 4 - Advanced Concepts of C Sharp
C# Coding Seminar 5 - C Sharp - Top New Features
C# Coding Seminar 6 - Conclusion