GetHashCode override fix

This commit is contained in:
Sergey Chebotar 2022-03-23 18:07:49 +03:00
parent 7fffd91c9b
commit d7d574feb7

View File

@ -2,7 +2,7 @@
namespace RehauSku.PriceListTools namespace RehauSku.PriceListTools
{ {
public class Position public class Position
{ {
public string Group { get; private set; } public string Group { get; private set; }
public string Sku { get; private set; } public string Sku { get; private set; }
@ -36,7 +36,7 @@ namespace RehauSku.PriceListTools
Name Name
}; };
return properties.Where(p => p != null).Sum(p => p.GetHashCode()); return string.Concat(properties.Where(p => p != null)).GetHashCode();
} }
} }
} }