コード例 #1
0
ファイル: ExpressionRequest.cs プロジェクト: zzms/AutoMapper
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = SourceType.GetHashCode();
         hashCode = (hashCode * 397) ^ DestinationType.GetHashCode();
         return(MembersToExpand.Aggregate(hashCode, (currentHash, p) => (currentHash * 397) ^ p.GetHashCode()));
     }
 }
コード例 #2
0
ファイル: ExpressionRequest.cs プロジェクト: zzms/AutoMapper
 public bool Equals(ExpressionRequest other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(MembersToExpand.SequenceEqual(other.MembersToExpand) &&
            SourceType == other.SourceType && DestinationType == other.DestinationType);
 }