What is the purpose of extension methods?

Junior C#

Answer

Extension methods allow adding new functionality to existing types without modifying their source code or creating derived classes.

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