示例#1
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     return(HashCodeHelpers.Combine(
                Source.GetHashCode(),
                Target.GetHashCode(),
                SourceTerminal.GetHashCode(),
                TargetTerminal.GetHashCode()));
 }
示例#2
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     // ReSharper disable ConstantConditionalAccessQualifier
     // ReSharper disable ConstantNullCoalescingCondition
     // Justification: Because of struct default constructor
     return(HashCodeHelpers.Combine(
                Source?.GetHashCode() ?? 0,
                Target?.GetHashCode() ?? 0));
     // ReSharper restore ConstantNullCoalescingCondition
     // ReSharper restore ConstantConditionalAccessQualifier
 }