コード例 #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);
		}
コード例 #2
0
ファイル: PropertyPath.cs プロジェクト: PeterJee/vtms
 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);
 }
コード例 #3
0
ファイル: PropertyPath.cs プロジェクト: PeterJee/vtms
 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();
		}