static AssemblyRuntimeInfo() { //Assembly asm=typeof(Executor).Assembly; Assembly asm = typeof(AssemblyRuntimeInfo).Assembly; _current = new AssemblyRuntimeInfo() { _version = asm.GetName().Version, _moduleVersionId = asm.ManifestModule.ModuleVersionId }; }
public override bool Equals(object obj) { AssemblyRuntimeInfo other = obj as AssemblyRuntimeInfo; return(other == null?false:(_version.Equals(other._version) && _moduleVersionId.Equals(other._moduleVersionId))); }