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);
		}
Example #2
0
 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);
 }
Example #3
0
 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();
		}