Acme.Northwind.EFDAL.Entity.CustomerPrimaryKey.Equals C# (CSharp) Метод

Equals() публичный Метод

Returns a value indicating whether the current object is equal to a specified object.
public Equals ( object obj ) : bool
obj object
Результат bool
		public override bool Equals(object obj)
		{
			if (obj == null) return false;
			if (obj.GetType() == this.GetType())
			{
				var retval = true;
				retval &= (this.CustomerID == ((Acme.Northwind.EFDAL.Entity.CustomerPrimaryKey)obj).CustomerID);
				return retval;
			}
			return false;
		}