O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Generics in .NET

Video Description

In this Generics in .NET training course, expert author Joe Wirtley will teach you how to use generics in .NET to eliminate code duplication and enforce static typing. This course is designed for users that already have a basic working knowledge of C#.

You will start by learning the generic basics, including generic methods, classes, and interfaces. From there, Joe will teach you about generics in the framework, generics and arrays, and delegate types. This video tutorial will also cover constraints and real world examples, such as XML serialization and modal dialog initialization. Finally, you will learn about some other topics including generics and enumerations, generic terminology, and covariance.

Once you have completed this computer based training course, you will have learned the necessary concepts required for using generics in .NET.

Table of Contents

  1. Introduction
    1. Welcome And What To Expect 00:04:23
    2. About The Author 00:01:34
    3. Tools 00:03:59
    4. Outline 00:01:43
    5. How To Use The Working Files 00:01:15
  2. Basics
    1. Generic Methods 00:03:01
    2. Generic Classes 00:05:57
    3. Generic Interfaces 00:02:57
    4. Inheritance 00:02:39
    5. Generic Delegates And Events 00:03:57
    6. Generic Default Values 00:03:56
    7. Type Inference 00:03:00
    8. Nested Generic Definitions 00:03:09
    9. VB.NET Syntax 00:04:53
  3. Linked List Example
    1. Non-Generic Linked List 00:03:26
    2. Generic Linked List 00:03:58
    3. Implementing Generic IEnumerable 00:01:38
    4. Using Generic Delegates 00:03:11
  4. Generics In The Framework
    1. Generic IEnumerable 00:07:31
    2. Generic List 00:08:28
    3. Generic Collections And Arrays 00:03:24
    4. IEnumerable.Cast 00:02:21
    5. Generic Dictionary 00:04:00
    6. Delegate Types 00:03:59
    7. Other Generic Classes In The Framework - Part 1 00:04:59
    8. Other Generic Classes In The Framework - Part 2 00:07:02
  5. Constraints
    1. Introduction To Constraints 00:03:20
    2. Class And Struct Constraints 00:03:02
    3. Constraining To A Type 00:05:05
    4. New Constraint 00:02:23
    5. Restrictions On Unconstrained Types 00:02:44
    6. Equals Operator 00:05:52
    7. VB.NET Syntax 00:02:28
  6. Real World Examples
    1. XML Serialization 00:05:51
    2. Prism Region Manager 00:06:16
    3. Generic Base Class - Part 1 00:04:06
    4. Generic Base Class - Part 2 00:06:04
    5. Modal Dialog Initialization 00:05:49
  7. Other Topics
    1. Generics And Enumerations 00:06:24
    2. Generic Terminology 00:02:25
    3. Covariance - Part 1 00:06:01
    4. Covariance - Part 2 00:01:34
    5. Contravariance 00:05:12
    6. Reflection 00:08:00
  8. Conclusion
    1. Summary And Resources 00:03:11