0Pricing
C# Academy · Lesson

Understanding Reflection in C#

Use reflection to inspect and manipulate objects at runtime.

1

Understanding Reflection in C#

Welcome to the next lesson! In this lesson, you’ll learn about reflection in C#, a powerful feature that allows you to inspect and interact with types and objects at runtime. Let’s get started!

Understanding Reflection in C# — illustration 1

2

What is Reflection?

Reflection is the ability of a program to inspect and manipulate its own structure at runtime. It is commonly used for:

  • Accessing metadata about types, methods, and properties.
  • Dynamically invoking methods and accessing fields.
  • Building frameworks and tools like serializers and ORMs.

Key Point: Reflection is part of the System.Reflection namespace.

All lessons in this course

  1. Generics in C#
  2. Async and Await: Working with Asynchronous Code
  3. Understanding Threading and Tasks
  4. Exploring Delegates and Lambdas
  5. Understanding Reflection in C#
← Back to C# Academy