Avega.BDD.SpecFlow.Domain.Model.AutoMappingDemoTaBortSen.OrderItem.GetHashCode C# (CSharp) 메소드

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int
        public override int GetHashCode()
        {
            unchecked
            {
                int result = Id;
                result = (result * 397) ^ Quantity;
                result = (result * 397) ^ (Product != null ? Product.GetHashCode() : 0);
                return result;
            }
        }