# Reflection

Inspecting and using types, members, and annotations at runtime.

## What is **Reflection** in C#?

**Reflection** — Inspecting and using types, members, and annotations at runtime.

```csharp
class TypeInspector
{
    string TypeName(object value)
    {
        Type type = value.GetType();
        return type.Name;
    }
}
```

Level: Master · [More C# terms at this level](https://www.ask-codey.com/glossary/subjects/c-sharp/master)

Updated: September 27, 2026

## In other subjects

- [Reflection in Java](https://www.ask-codey.com/glossary/reflection)

Source: https://www.ask-codey.com/glossary/reflection-c-sharp
