Fundamentals of .NET Programming using VB.NET and C#

$800.00


  • Virtual Classroom

  • Onsite
Duration: 2 Days

This introductory-level class provides a solid foundation for developers to begin leveraging the .NET platform. Topics covered include an introduction to the .NET framework and the Common Language Runtime (CLR), language fundamentals, and object-oriented concepts as implemented in .NET.

What You Will Learn

 

  • Basic object-oriented concepts required to work in .NET
  • Objects supported in the framework including basic collection classes, strings, and exception handling
  • Basics of working with Windows applications as well as web applications and web forms
  • Persistence and data interaction using streams and ADO.NET
  • .NET languages and working with Visual Basic.NET and C#, including exercises and code samples from each

Audience

 

Prerequistes

 

Prior programming experience in at least one object-oriented language such as a .NET language (e.g., C#, VB.NET), Java, C++, or SmallTalk, or significant programming experience in a modern language such as MS Visual Basic

Course Outline

 

1. Introduction to .NET Programming

  • What is the .Net Platform?
  • Common Type System
  • The Common Language Runtime and the Common Intermediate Language
  • What is the .Net Framework?
  • Namespaces
  • Framework Packages
  • The .NET Languages
  • C# as a Replacement for C++
  • VB.NET as Object Oriented VB8
  • Object Members and Comments
  • Example: Welcome to the .NET Program
  • Example: Welcome Using Alert

2. Creating a Simple Web Site

  • Web Sites and Applications
  • Compile Models for Web Sites in VS.NET 2005
  • The ASP.NET Development Web Server
  • Web Forms and Events

3. Creating a Simple Windows Application

  • Windows Applications
  • Windows Forms and Events

4. Introduction to Visual Studio .NET

  • What is Visual Studio .NET and is it required to write .NET and ASP.NET applications?
  • VS.NET Editions and Alternatives
  • The Integrated Development Environment
  • Working with Solutions and Projects
  • Documentation And Help
  • Microsoft Document Explorer
  • Help Integrated Into the IDE
  • Debugging and Diagnostics

5. Setting Up Course Exercise Solutions

  • Create a Blank Solution
  • Console Applications
  • Web ASP.NET Applications
  • Windows Forms Applications

6. Language Fundamentals Part 1: Data Types, Literals, and Constants

  • Data Types
  • Literals and Identifiers
  • Variables and Constants
  • Strongly Typed
  • Data Casting and Conversion
  • The ToString() Method
  • Example: Some Conversions

7. Language Fundamentals Part 2: Statements, Expressions, and Subroutines

  • Statements
  • Expressions
  • Subroutines
  • Example: A Subroutine to Calculate Movie Sales
  • Declaring Subroutines
  • Calling Subroutines
  • Example: Subroutines with Parameters and Return Types
  • Overloading

8. Branching

  • What is Branching?
  • Unconditional Branching
  • Conditional Branching
  • If-Else Statements
  • Example: Simple If Statement
  • Example: Simple If-Else Statement
  • Multiple Branching Conditional Statements
  • Example: Simple Multiple Branch

9. Loops

  • For Loops
  • Example: For Loops
  • While and Do-While Loops
  • Example: While and Do-While Loops
  • Loop Jump Statements

10. Operators

  • Operator Precedence
  • Mathematical
  • Logical
  • Bitwise
  • Boolean
  • Relational
  • Short Circuiting

11. Classes and Objects

  • Object-Oriented Concepts
  • Why do we need object-oriented programming?
  • Classes are Templates
  • Members
  • Class Members vs. Object Members
  • Objects are Instantiated from Classes
  • To Instantiate an Object, Call the Class's Constructor
  • Classes Inheritance
  • Example: Building and Using a Movie Viewer Class
  • Declaring a Class
  • Setting Up Data Members to Hold the Property Values
  • Defining Properties
  • Declaring the Constructor Method
  • Defining Methods

12. Inheritance

  • Generalization and Specialization
  • Inheritance and Polymorphism
  • Constructors
  • Example: Inheriting from the Movie Viewer Class
  • The .NET Object Base Class
  • Example: Overriding the ToString() Method of the Object Class
  • Value and Reference Types
  • Boxing and Unboxing

13. Interfaces

  • What is an Interface?
  • Example: Defining and Implementing an IRenter Interface

14. Arrays

  • What Are Arrays?
  • Declaring and Initializing Arrays
  • Iterating Through Arrays Using For-Each
  • Example: Using For-Each to Iterate Through an Array
  • Multi-Dimensional Arrays
  • Example: Rectangular Arrays
  • Example: Jagged Arrays
  • Passing Arrays as Parameters

15. Collections Part 1: Hashtables and Enumeration

  • Hashtables
  • Indexers/Default Properties
  • Example: Hashtable
  • Encapsulating Collections with ICollection, IEnumerable, and IEnumerator
  • Example: Implementing An Encapsulated Collection

16. Collections Part 2: ArrayLists, Other Collection Types, and Sorting

  • ArrayLists
  • Example: Simple ArrayList
  • Some Less Common Collection Classes
  • Queues
  • Example: Simple Queue
  • Stacks
  • Example: Simple Stack
  • Sorting using IComparable and IComparer
  • Example: Implementing IComparable and ArrayList.Sort() To Enable Sorting

17. Strings

  • What is the String Class?
  • Strings are Immutable
  • Example: Some Useful String Properties and Methods
  • Comparing Strings
  • What is the StringBuilder Class?
  • Example: Working with the StringBuilder Class
  • Regular Expressions and the RegEx Class
  • Example: A Regular Expression Tester
  • Special Characters for Pattern Matching
  • Escape Sequences for Special Characters
  • Specifying Ranges in Patterns
  • Matching a Specified Number of Occurrences
  • Character-Range Escape Sequences
  • Matching at the Beginning or End of a String with ^ and $
  • The Word-Boundary Pattern Anchors: \b and \B

18. Introduction to Streams

  • What are Streams?
  • Reading and Writing Data
  • Why are there Streams and Reader/Writer Classes?
  • Why do we need Streams?
  • Example: Writing to a Tab-Delimited File

19. Structured Exception Handling

  • What is an Exception?
  • What is Structured Exception Handling?
  • The Exception Class
  • Try-Catch-Finally
  • Example: Throwing and Catching Exceptions

20. ADO.NET Introduction

  • What is ADO.NET?
  • An Overview of Relational Database Concepts
  • What is a Database?
  • Characteristics of Relational Databases - The Basics
  • What is an RDBMS?
  • RDBMS Features
  • The ADO.NET Object Model
  • The Built-In Managed Providers: SQL, OleDB
  • Additional Connection Classes
  • Getting the Data Out
  • The IDataReader Interface
  • Introducing the Database Used for the Course
  • Example: Selecting Records Using a DataReader

21. ADO.NET DataSets and the Disconnected Model

  • What is a DataSet?
  • Accessing Data Through a DataSet's Tables and Rows
  • Using IDataAdapter
  • Example: Selecting Records from a Database using a DataSet

22. Advanced: ADO.NET Commands and Stored Procedures

  • What is the Command class?
  • Executing a Stored Procedure or Query
  • Example: Executing a Query Using a Command Object
  • Passing Input Parameters to a Stored Procedure or Query
  • Example: Passing Input Parame

    Course Labs