Exemplo n.º 1
0
 public override int GetHashCode()
 {
     return(File.GetHashCode() ^
            StartLineNumber.GetHashCode() ^
            StartColumnNumber.GetHashCode() ^
            EndLineNumber.GetHashCode() ^
            EndColumnNumber.GetHashCode() ^
            Text.GetHashCode());
 }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ModuleHash.Length != 0)
            {
                hash ^= ModuleHash.GetHashCode();
            }
            if (MetadataToken != 0)
            {
                hash ^= MetadataToken.GetHashCode();
            }
            if (StartLineNumber != 0)
            {
                hash ^= StartLineNumber.GetHashCode();
            }
            if (EndLineNumber != 0)
            {
                hash ^= EndLineNumber.GetHashCode();
            }
            return(hash);
        }