C# for Visual Basic .NET Developers

Quickly become proficient in C# by leveraging your existing VB.NET skills.
Course info
Rating
(195)
Level
Intermediate
Updated
Sep 27, 2013
Duration
3h 16m
Table of contents
Introduction
Basic C# Syntax
Classes, Interfaces and Inheritance
Generics, Delegates, Events and Lambdas
Completing the Transition
Automating Conversion
Description
Course info
Rating
(195)
Level
Intermediate
Updated
Sep 27, 2013
Duration
3h 16m
Description

In this course you learn to take your existing Visual Basic .NET skills to quickly become proficient in C#. While there are many similarities between the two languages, this course will save you hours of searching for language based equivalent syntax, demonstrate where functionality among the languages diverge and show you how to use VB’s My namespace in a C# project.

About the author
About the author

Craig Shoemaker is a developer, instructor, writer, podcaster, and technical evangelist of all things awesome.

More from the author
HTML5 Fundamentals
Beginner
3h 47m
Mar 3, 2017
jQuery: Getting Started
Beginner
1h 40m
Jun 3, 2015
More courses by Craig Shoemaker
Section Introduction Transcripts
Section Introduction Transcripts

Introduction
Hello, and welcome to C# for Visual Basic. NET developers. In this course, you'll learn how to take your existing skills as a. NET developer in Visual Basic and quickly apply them to be proficient in writing applications in C#. My name is Craig Shoemaker, and I've had the pleasure of building applications both in VB. NET and C#. And while the development community has in the past engaged in no small amount of controversy, regarding the virtues of either VB or C#. I want you to know that from the start, all that dogma is set aside here. I know firsthand about what a great language Visual Basic. NET is and in fact, you're simply more valuable as a developer if you know both C# and VB. And that's the ultimate aim of this course, to make you a better and more marketable developer. So who do I think you are? Who do I hope you are? Well my guess is that you're a developer proficient in VB, looking to quickly ramp up on being effective in C#. So what I'm going to focus on in this course is the differences between VB and C#, and I'll assume that you're pretty familiar with the intricacies of VB and some of the basics of the. NET framework. As for the languages, both compile down to MSIL. Both use, and are able, to extend the. NET framework. So in many senses, they're equivalent languages. All you need to know are the variations among each language to be productive. So, by the end of this course, you should feel just as confident in C# as you are in Visual Basic. So to begin, let's start at the beginning.

Basic C# Syntax
In this module of C# for Visual Basic. Net Developers. You'll learn about the basic C# syntax that exists as equivalent syntax to where you're used to using in Visual Basic. By the end of the module, you'll be familiar with how C# handles strings, loops, arrays, comments, exception management, null data, and a whole lot more.

Classes, Interfaces and Inheritance
Welcome back to C# for Visual Baic. NET Developers. This is Craig Shoemaker, and in this module, you'll learn all about C#'s classes, interface, and inheritance. Again, Visual Basic and C# are very close in how they implement object oriented principles, but there are a few areas where there's some notable differences, and by the end of our time together, you'll know exactly where those distinctions exist.

Completing the Transition
Welcome once again the C# for Visual Basic. NET Developers. This is Craig Shoemaker and in this module you'll learn a few more ways that you can continue to adjust to C#. You'll learn about some of the default C# code snippets available in Visual Studio as well as how to compensate for the fact that C# does not have the my namespace available. But first I'll review five more subtle differences in syntax between C# and Visual Basic. In Visual Basic, when using attributes, you must surround the attribute name with angle brackets, but in C#, you'll use square brackets. The syntax in Visual Basic for a struct or structure is the word structure itself, but in C#, you'll just use the word struct. Casing differences make up the distinction between many statements in Visual Basic and C#. And in this case, it's only the casing, but also some parentheses where you'll find the differences in C#. Namespace declarations, of course, are lowercase in C# and uppercase in Visual Basic. As well as constants. So, now let's turn our attention to VB's my namespace.

Automating Conversion
Welcome to the last module in C# for Visual Basic. NET Developers. This is Craig Shoemaker, and in this module, you'll learn how to build a console application that uses a web service to convert Visual Basic code to C#, and C# into Visual Basic. Having this little tool in your arsenal can help you compare and contrast code in your projects. As you're continuing to learn C#, as well as help you bring code found in one language into another, if you want or need to achieve a homogeneous code base. So let's start off by building the basis for our console application.