Exemple #1
0
                public override int GetHashCode()
                {
                    int hash = 1;

                    if (FileIndex != 0)
                    {
                        hash ^= FileIndex.GetHashCode();
                    }
                    if (Line != 0)
                    {
                        hash ^= Line.GetHashCode();
                    }
                    if (Col != 0)
                    {
                        hash ^= Col.GetHashCode();
                    }
                    if (Func.Length != 0)
                    {
                        hash ^= Func.GetHashCode();
                    }
                    if (Code.Length != 0)
                    {
                        hash ^= Code.GetHashCode();
                    }
                    if (_unknownFields != null)
                    {
                        hash ^= _unknownFields.GetHashCode();
                    }
                    return(hash);
                }
Exemple #2
0
        public override int GetHashCode()
        {
            int hash = 149;

            unchecked
            {
                hash = hash + 181 * FileIndex.GetHashCode();
                hash = hash * 173 + PathID.GetHashCode();
            }
            return(hash);
        }