Esempio n. 1
0
            public int CompareTo(ImageData other)
            {
                var ret = BaseAddress.CompareTo(other.BaseAddress);

                if (ret != 0)
                {
                    return(ret);
                }
                ret = ProcessID - other.ProcessID;
                if (ret != 0)
                {
                    return(ret);
                }
                return(DllName.CompareTo(other.DllName));
            }
Esempio n. 2
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hash = 17;

                if (LocalPath != null)
                {
                    hash = hash * 23 + LocalPath.GetHashCode();
                }

                if (DllName != null)
                {
                    hash = hash * 23 + DllName.GetHashCode();
                }

                if (ModuleName != null)
                {
                    hash = hash * 23 + ModuleName.GetHashCode();
                }

                return(hash);
            }
        }