コード例 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((IdentifierName != null ? IdentifierName.GetHashCode() : 0) * 397) ^ (Identifier != null ? Identifier.GetHashCode() : 0));
     }
 }
コード例 #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hash = 17;
         hash = hash * 23 + QualifiedName.QualifiedModuleName.GetHashCode();
         hash = hash * 23 + IdentifierName.GetHashCode();
         hash = hash * 23 + DeclarationType.GetHashCode();
         hash = hash * 23 + Scope.GetHashCode();
         hash = hash * 23 + ParentScope.GetHashCode();
         hash = hash * 23 + Selection.GetHashCode();
         return(hash);
     }
 }