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

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

matlab - error with cyclic autocorrelation function -

php - Using grpc in Laravel, "Class 'Grpc\ChannelCredentials' not found." -