From 3c7e24ecfe34291e551046bf5c8f1d95ea37af7e Mon Sep 17 00:00:00 2001 From: Sergey Chebotar Date: Tue, 20 Dec 2022 08:30:58 +0300 Subject: Rename Position to Product --- src/PriceListTools/Position.cs | 42 ------------------------------------------ 1 file changed, 42 deletions(-) delete mode 100644 src/PriceListTools/Position.cs (limited to 'src/PriceListTools/Position.cs') diff --git a/src/PriceListTools/Position.cs b/src/PriceListTools/Position.cs deleted file mode 100644 index 8ae5863..0000000 --- a/src/PriceListTools/Position.cs +++ /dev/null @@ -1,42 +0,0 @@ -using System.Linq; - -namespace RhSolutions.PriceListTools -{ - public class Position - { - public string Group { get; private set; } - public string Sku { get; private set; } - public string Name { get; private set; } - - public Position(string group, string sku, string name) - { - Group = group; - Sku = sku; - Name = name; - } - - public override bool Equals(object obj) - { - if (obj as Position == null) - return false; - - Position other = obj as Position; - - return Group == other.Group && - Sku == other.Sku && - Name == other.Name; - } - - public override int GetHashCode() - { - string[] properties = new[] - { - Group, - Sku, - Name - }; - - return string.Concat(properties.Where(p => p != null)).GetHashCode(); - } - } -} \ No newline at end of file -- cgit v1.2.3