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.
By the end of the class students will be able to:
- Learn basic object oriented concepts required to work in .NET
- Understand objects supported in the framework including basic collection classes, strings, and exception handling
- Learn the basics of working with Windows applications as well as Web applications and Web forms
- Learn persistence and data interaction using streams and ADO.NET
- Understand the .NET languages and work with Visual Basic.NET and C#, with exercises and code samples from each
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.
Introduction to .NET Programming
- What is the .Net Platform
- Common Type System
- The Common Languate Runtime and the Common Intermediate Language
- What is the .Net Framework?
- 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
Creating a Simple Web Site
- Understanding Web Sites and Applications
- Compile Models for Web Sites in VS.NET 2005
- The ASP.NET Development Web Server
- Understanding Web Forms and Events
Creating a Simple Windows Application
- Understanding Windows Applications
- Understanding Windows Forms and Events
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
Setting Up Course Exercise Solutions
- Create a Blank Solution
- Console Applications
- Web ASP.NET Applications
- Windows Forms Applications
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
Language Fundamentals Part 2: Statements, Expressions, and Subroutines
- Example: A Subroutine to Calculate Movie Sales
- Declaring Subroutines
- Calling Subroutines
- Example: Subroutines with Parameters and Return Types
- 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
- For Loops
- Example: For Loops
- While and Do-While Loops
- Example: While and Do-While Loops
- Loop Jump Statements
- Operator Precedence
- Short Circuiting
Classes and Objects
- Introduction to Object Oriented Concepts
- Why do we need object oriented programming?
- Classes are Templates
- 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
- Generalization and Specialization
- Inheritance and Polymorphism
- 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
- What is an Interface?
- Example: Defining and Implementing an IRenter Interface
- 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
Collections Part 1: Hashtables and Enumeration
- Indexers/Default Properties
- Example: Hashtable
- Encapsulating Collections with ICollection, IEnumerable, and IEnumerator
- Example: Implementing An Encapsulated Collection
Collections Part 2: ArrayLists, Other Collection Types, and Sorting
- Example: Simple ArrayList
- Some Less Common Collection Classes
- Example: Simple Queue
- Example: Simple Stack
- Sorting using IComparable and IComparer
- Example: Implementing IComparabable and ArrayList.Sort() To Enable Sorting
- 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
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
Structured Exception Handling
- What is an Exception?
- What is Structured Exception Handling?
- The Exception Class
- Example: Throwing and Catching Exceptions
- 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
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
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 Paramters to a Query Using a Command Object
Advanced: ADO.NET Inserts, Updates, and Deletes
- Modifying Data
- Example: A Form to Insert, Update, and Delete Data