Ejemplo n.º 1
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);
		}
Ejemplo n.º 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);
 }
Ejemplo n.º 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();
		}