C# Extension Methods
Course info



Course info



Description
Extension methods are a key feature of C# - they boost productivity, increase the readability of your code, and make it easy to implement standards across your projects. In this course, C# Extension Methods, you will learn all you need to know about extension methods in .NET Framework and .NET Core. First, you will learn the basics of extension methods: how to use them, how to write them, and how the tooling in Visual Studio and VS Code helps you to work with them. Then, you will discover the danger areas and the best practices for building your own extension methods. Finally, you will explore how to package and publish your own extension method library. By the end of this course, you will have a complete understanding of how to get value from this powerful feature.
Section Introduction Transcripts
Course Overview
Hey, how are you doing? My name is Elton, and this is C# Extension Methods. I'm a Microsoft MVP, and I've been writing C# code since the first release of .NET back in 2002. I've always found that extension methods are one of the most powerful features of C# that people don't use. This course will teach you all you need to get productive with extension methods so you can remove code duplication, reduce delivery time, implement standards, and improve the quality and maintainability of your applications. You'll start by learning the basics of extension methods, how to use them, how to write them, and how the tooling in Visual Studio and VS Code helps you to work with them. Then you'll learn the danger areas and the best practices for building your own extension methods, and I'll give you some guidelines that apply to whatever type of project you're working on. And lastly, you'll see how to package and publish your own extension method library with solid documentation to make it easy for developers in your organization to discover and reuse common code. Extension methods are a C# language feature which work across all versions of .NET, and my demos will use .NET Core and .NET Framework apps. You'll see some really useful extensions that you can put to work yourself, but more importantly, you'll learn the principles for making common code reusable with extension methods. By the end of the course, you'll have a complete understanding of how to get value from this powerful and underused feature. This course is part of Pluralsight's C# learning path, and I hope you'll join me to learn what you can do with C# extension methods.