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