From 73569a43644309d0342817580bcfd86c1face5b8 Mon Sep 17 00:00:00 2001 From: Sergey Chebotar Date: Tue, 20 Dec 2022 12:27:47 +0300 Subject: Namespace refactoring --- src/PriceListTools/Product.cs | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 src/PriceListTools/Product.cs (limited to 'src/PriceListTools/Product.cs') diff --git a/src/PriceListTools/Product.cs b/src/PriceListTools/Product.cs deleted file mode 100644 index e631293..0000000 --- a/src/PriceListTools/Product.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System.Linq; - -namespace RhSolutions.PriceListTools -{ - public class Product - { - public string ProductLine { get; set; } - public string ProductSku { get; set; } - public string Name { get; set; } - - public override bool Equals(object obj) - { - if (obj as Product == null) - return false; - - Product other = obj as Product; - - return ProductLine == other.ProductLine && - ProductSku == other.ProductSku && - Name == other.Name; - } - - public override int GetHashCode() - { - string[] properties = new[] - { - ProductLine, - ProductSku, - Name - }; - - return string.Concat(properties.Where(p => p != null)).GetHashCode(); - } - } -} \ No newline at end of file -- cgit v1.2.3