Acme.Northwind.EFDAL.Entity.EmployeeTerritoriePrimaryKey.Equals C# (CSharp) Method

Equals() public method

Returns a value indicating whether the current object is equal to a specified object.
public Equals ( object obj ) : bool
obj object
return bool
		public override bool Equals(object obj)
		{
			if (obj == null) return false;
			if (obj.GetType() == this.GetType())
			{
				var retval = true;
				retval &= (this.EmployeeID == ((Acme.Northwind.EFDAL.Entity.EmployeeTerritoriePrimaryKey)obj).EmployeeID);
				retval &= (this.TerritoryID == ((Acme.Northwind.EFDAL.Entity.EmployeeTerritoriePrimaryKey)obj).TerritoryID);
				return retval;
			}
			return false;
		}