- Tel: +44 (0)1275 859666
CS05 - C# Fundamentals - Primer / Programming Workshop - 5 Days
Course Description
Customisation
For on-site courses (i.e. at your premises), we are more than happy to tailor the course agenda to suit your exact requirements. In many cases, we are able to build your in-house standards and naming conventions into the delivered course.
Course Details
- MICROSOFT .NET PLATFORM
- Goals of .NET
- Overview of .NET
- The .NET Framework
- Development Tools
- Overview of .NET
- INTRO TO C#
- The "Hello World" Application
- OBJECT-ORIENTED CONCEPTS
- What Is an Object?
- The Benefits of Encapsulation
- Sending Messages to an Object - Methods
- The Benefits of Messages
- What Are Classes?
- Objects vs. Classes
- The Benefit of Classes
- What Is Inheritance?
- The Benefits of Inheritance
- The Benefits of Encapsulation
- DATA TYPES AND VARIABLES
- Variables
- Value Types
- Literal Values
- Variable Naming and Standards
- Variable Initialisation
- Reference Types
- Predefined Reference Types
- Nullable Types
- Variable Usage Types
- Variable Scope
- Constant Variables
- Read-Only variables
- Escape Characters
- Passing Arguments to C# Programs
- Value Types
- ARITHMETIC AND BITWISE MANIPULATION
- Arithmetic Operators
- Unary Operations
- Bitwise Operators
- Assignment Operators
- Expressions
- Literal Values
- Casting
- Implicit Casting
- Casting with Operators
- Checked Keyword
- Decimal Precision
- Unary Operations
- OBJECTS, METHODS AND CLASSES
- Introduction to Classes and Objects
- Methods
- A Complete Example
- Break Down of Complete Example:
- Combining Application / Object Code
- Creating Objects
- Manipulating Objects - Variables vs methods
- Method Syntax
- Calling an Objectxxs Methods
- Returning Values from Methods
- Encapsulation
- Properties
- Object Initializers
- Anonymous Types
- Named Arguments
- Passing Arguments and Method Overloading
- Default Parameters and Named Arguments
- Variable Argument (params) Methods
- Pass By Value / Reference
- The ref keyword
- Passing Arguments - Under the Bonnet
- Using the xxthis.xx and xxbase.xx Prefix
- The out keyword
- Static Variables and Methods
- Static properties
- Constructors
- Constructor Example
- Constructor Syntax
- Constructor Rules
- Constructor Chaining
- Static Constructors
- Cleaning Up Unused Objects - The Garbage Collector
- Destructors
- Methods
- STRUCTURES
- Structs
- Using Structs
- Features of C# Structures
- Structure Methods
- Using Structs
- ENUMS
- Enumerations
- Passing Enums to Methods
- Changing the Enum Mapping
- Passing Enums to Methods
- CONTROL FLOW STATEMENTS
- Relational Operators
- Conditional Operators
- Control Flow Statements
- The if-else Statement
- The Ternary Expression
- The switch Statement
- For Loop Statements
- ForEach Loop
- While loop Statements
- Do-while loop Statements
- Breaking out of Loops: break and continue
- The Goto Statement
- Conditional Operators
- STRINGS
- Strings
- Literal Strings
- String Methods
- String Concatenation
- Testing for String equality
- String Manipulation - the StringBuilder class
- Literal Strings
- INHERITANCE
- Inheritance - Extending a Class
- What does a Derived class Inherit?
- Inherited Methods in System.Object
- What does a Derived class Inherit?
- ARRAYS
- Arrays
- Allocating Storage for an Array
- Multi-Dimentional Arrays
- Arrays of Objects
- Passing Arrays as Arguments
- Array Utilities
- Splitting and Joining Strings
- Allocating Storage for an Array
- NAMESPACES AND ASSEMBLIES
- Namespaces of the C# Platform
- Namespaces
- Using Namespace Members
- The USING keyword
- Aliases
- Assemblies
- Namespaces
- C# KEYWORDS AND ACCESSIBILITY MODIFIERS
- Class Declaration Parameters
- Variable Declaration Parameters
- Method Declaration Parameters
- Variable Declaration Parameters
- CONVERSION AND FORMATTING
- Data Type Conversion
- Boxing and Unboxing
- Numeric Formatting
- Date Formatting
- Boxing and Unboxing
- OBJECT CASTING
- Casting Objects
- Overriding Methods and Casting
- Overriding Methods and Casting
- UNIT TESTING
- MSTest and NUnit Introduction
- Installing the NUnit Framework
- MSTest and NUnit Testing
- MSTest and NUnit Assert Methods
- Running MSTest and NUnit
- Initialisation and Cleanup
- Testing for exceptions
- Installing the NUnit Framework
- ABSTRACT CLASSES AND INTERFACES
- Abstract Classes and Methods
- Interfaces
- Defining an Interface
- Implementing an Interface
- Explicitly Implementing An Interface
- Interfaces
- ERROR HANDLING
- C# Exceptions
- Try / Catch Processing
- The Finally Block
- Passing Exceptions Up the Stack
- The Throw Statement
- Re-Throwing Exceptions
- User Defined Exceptions
- Try / Catch Processing
- ADVANCED C# CONCEPTS
- Delegates
- Delegates: Anonymous Methods
- Delegates: Lambda Expressions
- Extensions Methods (.NET 3.0)
- Operator Overloading
- Indexers
- Delegates: Anonymous Methods
- COLLECTIONS
- Collection Interfaces and Implementations
- Generics
- Summary Of Collection Implementations
- Using Collection Classes - ArrayLists
- Using Collection Initializers
- Other ArrayList Methods
- Generic List
- Traversing Collections
- Filtering Items From A List
- Using Collection Classes - Hashtables
- Looping around Hashtables
- Generic Dictionaries
- Dictionary Exceptions
- Generics
- LINQ TO OBJECTS
- The Basics
- LINQ with Custom Types
- The Select Statement
- GroupBy & Distinct
- LINQ with Custom Types
- SORTING OBJECTS
- Sorting Objects
- The IComparable Interface
- IComparers
- SortedDictionary and SortedList
- SortedList
- SortedList
- SortedDictionary
- The IComparable Interface
- C# I/O
- File and Directory manipulation
- Simple Reading and Writing
- Classes to Read / Write
- BinaryReader
- BinaryWriter
- Serialization - Persistence of Objects
- Serialization With XML
- Simple Reading and Writing
- THREADS & SYNCHRONISATION
- What is a Thread?
- Creating Threads
- Thread and ThreadStart
- ParameterizedThreadStart
- ThreadPool
- CountdownEvent
- ManualResetEvent
- Delegates and Threads
- Thread Synchronization
- Thread Priority
- Creating Threads
- ASYNCHRONOUS PROGRAMMING
- Introduction to Async and Await
- Using Async and Await
- Using Async and Await
- THE VISUAL STUDIO DEVELOPMENT ENVIRONMENT
- The Workbench
- Solution Explorer, Class View, Toolbars
- Searching, Rearranging Views
- Working With C#
- Fixing Problems, Creating new Classes and Interfaces
- References
- The C# Editor
- Editing code and elements, IntelliSense, Code Formatter
- Running and Debugging apps
- Solution Explorer, Class View, Toolbars