Vous êtes sur la page 1sur 2

Beginning C#

This series is a good review for those who may be coming from another programming language. It covers many of the sytactical elements of VB.NET and concludes with a look at Object Oriented concepts and techniques using C#.

The following videos are available for this series:


C# Hello World and Creating Console Applications I'll create a simple Hello World program that outputs text to the command window as a starting point for understanding what makes up a C# application. I also show the steps for creating Console applications, which allow us to feature a particle element of C# without worrying about the user interface. C# If Statement The If statement is a staple in virtually all programming languages because it allows us to conditionally branch our programming logic by evaluating conditions. We look into the If statement, the Else statement, and how to accomodate multiple lines of code using a curly bracket. C# Switch Statement The switch statement is similar to the Case Select statement in Visual Basic. It allows you to easily evaluate a single variable against multiple possible values. Also explains the use of Break and GoTo statements. C# For Loop Many times you will need to itterate through a series of values to perform a task a specified number of times. The For Loop is one method of accomplishing this. Additionally, this video shows the use of the Visual Studio.NET debugger to better understand how the for loop works behind the scenes. C# While Loop The While Loop is similar to the For loop, but with a major difference: it allows you to still access the variable that is used to evaluate the current itteration. This video highlights this difference and demonstrates is use. C# Do Loop The Do Loop is much like the While loop with one major difference: The code within its structure is executed at least once. This distinction is highlighted in the video. C# Foreach Loop The Foreach Loop allows you to itterate through arrays and collections of items. This video shows how to declare and initialize an array and itterate through its values. C# Classes This video explains the basic concepts of classes, including public and private, fields, properties and methods (accessors and modifiers), and constructors. C# Variables, Variable Scope and Modifier While we've glossed over the topic of variables thus far, understanding a little more about how they work, and in particular their scope and how to adjust their visibility with accessibility modifiers is important as you create C# applications. This video delves into many aspects variable usage. C# Constants Constants allow you to replace "magic numbers" that appear in your code, but have little if no

context, to sensible designations that make your code more readable and maintainable. C# Structs Structs are light weight data structures that allow you to group together related data without having to define a class. The benefits of using structs are explained in this video, as well as a lengthy explanation about the effects of structs being passed by value. C# Enumerations Enumerations (enums) are used to make your code readable and to limit the possible values of a variable. C# Type Conversions Type conversion can be a challenging topic because, if not used appropriately, can result in unexpected results in your applications. This video seeks to clarify some of the obscurity in regards to type conversion. C# Checked and Unchecked Statements Checked allows you to force C# to raise an exception whenever stack overflow (or underflow) occurs due to type conversion issues. Unchecked will allow you to ignore these exceptions when the C# project is set to raise these types of exceptions. This video explains both of these concepts thoroughly. Structured Exception Handling Explains and demonstrates Exception Handling in .NET using the Try/Catch/Finally statements. Coding Exception Handling into your App Continues to explain how to find exception objects for use within your application. Defining and Using Arrays in C# Demonstrates the creation and initialization of different types arrays, including multi-dimensional arrays and jagged arrays. Basics of Overloading and Inheritance with C# This video highlights two basic tennets of Object Oriented programming. I'll demonstrate how to overload a method (in this case, a constructor), and also the technique needed to convert the class from our previous video into an assembly. The we'll create a reference to the new assembly, and derive from the base class (Point). Finally, I'll demonstrate how to derive constructors, and overload the methods of the base class. Trust me ... it will make more sense after you watch :) Operator Overloading Demonstrates how to implement your own overloaded operators (such as the + operator) for custom classes. C# Delegate Basics Delegates are object oriented function pointers allowing you to handle callbacks and events.

Vous aimerez peut-être aussi