Esempio 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);
 }
 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);
 }
Esempio 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();
 }