Example #1
0
        static AssemblyRuntimeInfo()
        {
            //Assembly asm=typeof(Executor).Assembly;
            Assembly asm = typeof(AssemblyRuntimeInfo).Assembly;

            _current = new AssemblyRuntimeInfo()
            {
                _version = asm.GetName().Version, _moduleVersionId = asm.ManifestModule.ModuleVersionId
            };
        }
Example #2
0
        public override bool Equals(object obj)
        {
            AssemblyRuntimeInfo other = obj as AssemblyRuntimeInfo;

            return(other == null?false:(_version.Equals(other._version) && _moduleVersionId.Equals(other._moduleVersionId)));
        }