public PropertyPath(PropertyPath previousPath, MemberInfo localMember) { if (localMember == null) { throw new ArgumentNullException("localMember"); } this.previousPath = previousPath; this.localMember = localMember; hashCode = localMember.GetHashCode() ^ (previousPath != null ? previousPath.GetHashCode() : 41); }
public bool Equals(PropertyPath other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(hashCode == other.GetHashCode()); }
public bool Equals(PropertyPath other) { if (ReferenceEquals(null, other)) { return false; } if (ReferenceEquals(this, other)) { return true; } return hashCode == other.GetHashCode(); }