Reflection makes programming feel like magic, even more than it already does. It allows developers to gain access to programming capabilities, that compile time safety might not allow. Reflection is used everywhere, and it is the glue that brings some of the most advanced features in .NET together to enable us to build APIs, web applications, mobile apps, desktop apps, and so much more. Knowing how to use reflection is one thing, but very few developers fully understand it and use such a powerful tool responsibly. In this course, Microsoft Principal Software Engineering Manager Nick Consentino will teach you how to use reflection in your codebases correctly to build incredible software.
Welcome
What will you learn in this course?
Who is the course for and prerequisites
Teaching style
Static, Dynamic, Strong, and Weak
Where does type information go?
What Is Reflection?
Example Use Cases
Looking Up Types
Filtering Type Information
Assembly Scanning
Example Application
Get members of type
BindingFlags
Properties & Fields: Get and Set
Calling Methods
Constructor Info
GetMember & InvokeMember
Example Application
What is an attribute
Restrict to certain constructs
Finding Attributes on Types
Example Application
Recap & Introduction
Activator Create Instance
Example Application
Checking For Generics
Using Generics From Reflection
Make Generic Instances
Type Discovery
Invoking Members
Construction
Unsafe Accessors
Unsafe Accessor Performance
Code Generation
Conclusion
Course Info
Lifetime access
Add to Cart
Nick Cosentino is a Principal Software Engineering Manager at Microsoft and a .NET content creator. He manages the teams responsible for deploying the hundreds of services supporting the Microsoft365 suite of products to serve users across the planet. Nick brings his unique experiences to the Big Tech world having worked at a startup that scaled from a handful of employees to hundreds before it went public.
Nick runs a software engineering and dotnet-focused blog as well as a YouTube channel called Dev Leader. While he enjoys solving complex problems with software solutions, Nick is passionate about reducing barriers for people to get started on their software engineering journey.
More courses by Nick Cosentino© 2023 Dometrain. All rights reserved.