Intermediate C#
Q53 / 100

What is an attribute in C#?

Correct! Well done.

Incorrect.

The correct answer is B) Metadata annotations applied to types, methods, or parameters, readable via Reflection

B

Correct Answer

Metadata annotations applied to types, methods, or parameters, readable via Reflection

Explanation

[Obsolete("Use NewMethod instead")] and [Required] are attributes. Frameworks use Reflection to read them at runtime for validation, routing, etc.

Progress
53/100