c# - Is it possible to monitor changes in an internal class? -


i'm using csscript load c# files scripts @ run-time. these scripts inherit classes inside host application. faster loading i'm caching scripts, or rather compiled assemblies, , load instead if they're newer script file.

now, if method inside host application changes, script naturally has recompiled, otherwise exception, because calls in child don't match parent anymore. don't want recompile every script every time recompile application, because of time changes aren't related script base classes.

is possible create kind of "snapshot" of methods in base classes, methods , arguments, during run-time (reflection?), able tell when changed, know have recompile scripts?

calculate hash values script files , compare them when loading. if hash value has changed, script file has been modified.

see https://support.microsoft.com/en-gb/kb/307020


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -