Skip to main content

What is reflection in C#?

Mid C#
Quick Answer Reflection lets your code inspect and interact with types at runtime รขโ‚ฌโ€ read class names, get methods, invoke them, read attributes, create instances dynamically. Used heavily in ORMs, serializers, DI containers, and test frameworks. Powerful but slow รขโ‚ฌโ€ avoid in hot code paths.

Answer

Reflection allows inspecting metadata and interacting with types, methods, and properties at runtime.

S
SugharaIQ Editorial Team Verified Answer

This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice