c# - Allow user to modify method from outside assembly? -


basically, i'm trying write library people entity management games in c# , wondering if there's way user add functionality (similar override except won't inheriting class) method without directly changing .dll? know in c++ people use callbacks , wondering if there's similar in c#?

one option (instead of modifying method) use mef framework allow users extend application.

the managed extensibility framework or mef library creating lightweight, extensible applications. allows application developers discover , use extensions no configuration required. lets extension developers encapsulate code , avoid fragile hard dependencies. mef not allows extensions reused within applications, across applications well.


Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -