コード例 #1
0
 /// <inheritdoc/>
 public override int GetHashCode()
 {
     return(HashCodeHelper.Combine(
                SourceFile.GetHashCode(),
                OwningModule.GetHashCode(),
                EqualityComparer <SpecState> .Default.GetHashCode(State)));
 }
コード例 #2
0
 /// <inheritdoc/>
 public override int GetHashCode()
 {
     return(HashCodeHelper.Combine(Path.GetHashCode(), OwningModule?.GetHashCode() ?? 42));
 }
コード例 #3
0
 /// <inheritdoc/>
 public override int GetHashCode()
 {
     return(HashCodeHelper.Combine(OwningModule.GetHashCode(), ParsedFile.GetHashCode()));
 }
コード例 #4
0
 /// <inheritdoc/>
 public bool Equals(SpecWithOwningModule other)
 {
     return(Path.Equals(other.Path) && OwningModule?.Equals(other.OwningModule) == true);
 }
コード例 #5
0
 /// <inheritdoc/>
 public bool Equals(ParsedSpecWithOwningModule other)
 {
     return(OwningModule.Equals(other.OwningModule) && ParsedFile == other.ParsedFile);
 }