C#: Interfaces and Generics

C#: Interfaces and Generics

English | MP4 | AVC 1280×720 | AAC 44KHz 2ch | 1h 21m | 246 MB

Are you looking for ways to level up your C# coding? In this course, programming expert Joe Marini guides you through how to use interfaces and generics in C#. Joe explains that interfaces and generics both are used to construct flexible classes. He walks you through how to define and implement an interface, how to use an interface when casting one C# class to another type, how to implement more than one interface for a C# class, and more. Joe describes how interfaces keep your code nimble, compact, and efficient, while generics are used to create code that is more maintainable and easier to read. Joe shows you how to use C# list generics to create type-save lists of objects. He also covers how to use the generic versions of the queue and stack data structures, as well as how to use the generic versions of the queue and stack data structures. Interfaces and generics make your C# projects easier to build and scale, with fewer bugs and performance issues along the way.

Table of Contents

Introduction
1 Learning C# Interfaces and generics
2 What you should know
3 Setting up the environment

1. Overview
4 What are interfaces
5 What are generics

2. C# Interfaces
6 Understanding C# interfaces
7 Defining and implementing an interface
8 Interfaces and casting
9 Implementing multiple interfaces
10 Using explicit interface implementation
11 Using .NET-defined interfaces
12 Challenge Programming C# interfaces
13 Solution Programming C# interfaces

3. C# Generics
14 The benefits of generics
15 Generic list collections
16 Queue and stack
17 Dictionary
18 Challenge Programming C# generics
19 Solution Programming C# generics

Conclusion
20 Next steps

Homepage