コード例 #1
0
ファイル: Rent.cs プロジェクト: RicardoRLc/biblilioteca
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            if (obj.GetType() != this.GetType())
            {
                return(false);
            }
            Rent rent = (Rent)obj;

            return(this.GetHashCode() == rent.GetHashCode());
        }