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.
Comments
Post a Comment