What is an attribute in C#?

Junior C#

Answer

An attribute is metadata applied to program elements like classes, methods, or properties.

It helps frameworks control behavior at compile time or runtime.

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