an OBJECT GROUP company

FEEDBACK

NET Foundations (C# or VB.NET)


Course Outline

Whether you are a C# or VB.NET Programmer, this dual-language course introduces both the language and the development environment to the programmer.

Language fundamentals are presented along with hands-on exercises (available to students in both C# and VB.NET) on how to best implement applications that utilise the core .NET technologies.

.NET Foundations with C# or VB.NET will empower you to build, debug .NET applications utilising your C# and/or VB.NET skills and knowledge.

This unique dual-language course incorporates all theory, examples and practical exercises in both C# and VB.NET syntax enabling a wider development and technical audience to use the core features of .NET for 'real-world' applications - more than simply language syntax and tool instruction.

Outcomes

You will be able to confidently develop within the C# and/or VB.NET development environment and compose sound C# and/orVB.NET syntax. You will also develop a basic understanding of object oriented design concepts within a project.

At the end of this course you will be able to:

  • Build, execute and debug C# and/or VB.NET applications using Visual Studio.NET
  • Produce generated project documentation from a C# project and VB project
  • Build C# and/or VB.NET application with WinForms, ASP.NET and ADO.NET
  • Build and consume components written in C# and/or VB.NET

Book Course Now

Click on a date or location below to register for this course:

Please Note: Special prices are available for an In House delivery of this course. Read about the benefits and choices of our 'In House' course delivery option here .

Contact an Object Training Account Manager to enquire about alternative delivery options (such as In House or Customisation).

*All Australian prices are exclusive of GST

*If the course status is FULL please contact object training on 1300 360 203


Location Days Dates Cost(ex GST) Course Status
Sydney 4.0 15/06/2010 - 18/06/2010 A$2,560.00 Available
Melbourne 4.0 17/05/2010 - 20/05/2010 A$2,560.00 Available
Canberra 4.0 09/03/2010 - 12/03/2010 A$2,560.00 Available
Brisbane 4.0 04/05/2010 - 07/05/2010 A$2,560.00 Available

Topics Covered

An overview of the Microsoft .NET Platform

What is Microsoft .NET?

The .NET Runtime Environment

.NET Application Execution

Loading an assembly

Managed Execution

Languages in .NET

Visual Studio.NET

Visual Studio.NET IDE

Starting Visual Studio.NET

Solution Explorer

Class Viewer

Server Explorer

Toolbox for GUI builders

Properties

Dynamic help

Intellisense

Overview of Programming in .NET

Hello World

Invoking the Compiler

Notes to Recall

The Main Method

The namespace

What to put into namespace

Input/Output

The Read and the ReadLine

Formatting

Generating XML Documentation

XML Tags

Setting Out to C# and VB.NET

Common Type System (CTS)

Value and Reference Types

Type classification

References and Values

Reserved keywords for Simple Types

User-Defined Data Types

Enumeration Type

Enumerator Base Types

Structures

Structures vs Classes

No destructor or custom default constructor

No initialization

Structs to be simple and lightweight

Defining a Structure Type

Create a Structure Type

Implicit Data Type Conversion

Explicit Data Type Conversion

Function Arguments

Pass By Value

Value Types Pass By Reference

Value Types Output Parameters

The Variable-length List of Parameters

Invoke a Method with params

Statements

Grouping Statements

Types of Statements

The while Statement

The do while Statement

The for Statement

The foreach Statement

The goto Statement

The break Statement

The continue Statement

The if Statement

The Cascading if Statement

Logical Operators

The switch Statement

Using the goto Jump Statement

Arrays

What is an Array in .NET?

Creating an Array

Array Rank

Declaring Arrays

Instantiating Arrays

Array Indexing

Accessing Array Elements

Arrays are Objects

Using foreach

Often Used Methods

Creating an Array Object

Array Length

Array Boundaries

Passing Arrays to Methods

Passing an Array class

Returning an Array from Methods

Strings

The string Class

Create a string

String Addition

Strings are Immutable

The string in use

The StringBuilder class

Regular Expressions

Regular Expressions syntax

Summary of regular-expression constructs

Regular-expression examples

Predefined character classes

Collection Classes

Random Access Collections

Stack

Queue

LinkedList< >

Hashtable

ArrayList

List<>

StringCollection

StringDictionary

SortedList

Classes

A class Introduction

A Simple Class

Access Modifiers

Declaring Reference Variables

Release Reference Variables

Comparing References

Properties in .NET

Accessor Member Functions

Property Accessibility

Properties and Fields

Properties and Methods

Indexers

The partial keyword

Method Overloading

Constructors

Default Constructor

Overriding the Default Constructor

Overloading Constructors

Use the Initializer List

The 'is' keyword

The ‘as’ keyword

The ‘using’ keyword

The using statement

The ‘typeof’ keyword

Object Initialization Expressions

Using List<> with Object Initialization

const fields (Design-time const)

readonly fields (Run-time const)

Object Lifetime

Object Cleanup

Destructor (C# way to Finalize)

The Finalize method

Why implement Finalize method

IDisposable Interface

Implementing Finalization

Class scope members

Inheritance

Expressing Specialization

Terms: Base and Derived class

Syntax for Inheritance

Accessing Base Class Members

The Base Class Constructors

Calling the Base Class Constructor

Another Derived Class

Class Conversion – polymorphism

Run-time Polymorphism

Polymorphic methods

Working with polymorphic methods

Override the polymorphic method

Working with overriden methods

Shadowing fields

Shadowing a method

Shadowing polymorphic methods

Stop the further inheritance

Abstract Classes

Inheriting an Abstract class

Implementing Abstract Methods

Interfaces

The Power of Interfaces

Another interface

Implementing many Interfaces

Explicitly implement interface

Generics

An Overview of Generics

Dynamic array example

Generic code

Generic DynArray

Consuming a Generic class

.NET generics vs C++ templates

Type Parameters Constraints

Generic Methods

Generic Method overriden C#

Inheritance

Inheritance and overriding C#

Generic Interfaces C#

Generic Delegates

Nullable Types

Nullable

C# Language Nullable Types

Null Coalescing Operator in C#

New Features

Extension Methods

Anonymous Methods

Lambda Expressions

Language Integrated Query (LINQ)

Standard Query Operators

var example

Returned value is a sequence

Groups

Query Variable

Exception Handling

The throw, try, catch, and finally

Trying and Catching

Exception Handling Code Example

Exception Objects

User-defined Exception Classes

What can be Thrown in .NET

Re-throw Exceptions

Handling the Thrown Exception

System-Defined Exception

finally

finally notes

Checking for Arithmetic Overflow C#

checked and unchecked Expressions

Benefits of exception classes

Efficiency

Operator Overloading

The Unary Operators

Unary Operator Overloaded

The true and the false

Why to overload the true and false

The unary ‘–’ and ‘+’ Operator

The Bitwise Complement Operator ~

Binary Operators

Comparison Operators

The explicit casting operator

explicit Conversions

implicit Conversions

ADO.NET Fundamentals

Data Binding to Controls

Add Connection

Server Explorer

Connecting to a Data Source

Differences ADO and ADO.NET

Four namespaces

Open and Close connections

SqlConnection Practice

Connection Pool

Retrieve Data

Bind DataGridView

Read Data

Handling SqlExceptions

Finding a record

Inserting a new record

Deleting a record

Create a Store Procedure

Invoking a Store Procedure

Write Data to XML

Updating Record

Export to text file

Reading the text file

Component Development in .NET

A .NET Framework Component

.NET Component

Provide the Constructor

Compile the .NET Component

Creating A Console Consumer

Compile the Consumer

Windows Form Consumer

Reference the .NET Component

Handle the Convert Button

Handle the Close Button

Windows Forms Fundamentals

Using the Form class

The Form class

Windows Forms Designer

The Main method

Set Startup object

Setting Windows Forms Properties

Setting Windows Forms Programmatically

Opacity

Visual Inheritance

Change the base class

Inheritance Picker

Building GUI Elements

The Graphics class

Windows Forms Coordinates

Painting Text on a Form

Painting Shapes

Fill methods

Types of Brushes

Adding Controls to a Windows Form

Windows Form Designer Toolbox

Important Control Properties

Common Dialogue Boxes

Custom Dialogue Boxes

Configure the buttons

Add a property to the dialogue box

Handle the Click event

Test the dialogue box

Prerequisites

Participants should have practical experience in a programming languages such as C++, JAVA, VB, etc,.

Students must also have an understanding of Object Oriented concepts (attended the Object Technology Refresher course and/or familiar with the Object Oriented Paradigm)

CHECKLIST -- Make sure you are equipped with the necessary background for this course.

Audience

Developers and Programmers

Course Fee

$2,560.00 ex gst

Duration

Four Days

Structure

Presentations, demonstrations and exercises (available in both C# and VB.NET). PC-assisted

Tools

Visual Studio.NET 2008 Professional, IIS

Material

Deliverable material for this course includes:

  • Certificate of Accomplishment
  • Professionally printed student notes and exercises
  • CD containing original exercises and source code (For PC-based courses only)

For all courses, but particularly PC-based courses, students are encouraged bring their own USB drive to save worked solutions and/or additional reference material.

Terms and Conditions

Please click here to review our terms and conditions before booking on your course

Course Discounts

A discount may be available for this course and may be based on multiple bookings, In House delivery, or contract order agreements.

Please enquire about discounts with your Object Training Account Manager