From d7d574feb7625b258ed0d1e04a66a4c3996a4bcc Mon Sep 17 00:00:00 2001 From: Sergey Chebotar Date: Wed, 23 Mar 2022 18:07:49 +0300 Subject: [PATCH] GetHashCode override fix --- src/PriceListTools/Position.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PriceListTools/Position.cs b/src/PriceListTools/Position.cs index 34b7b93..713ba90 100644 --- a/src/PriceListTools/Position.cs +++ b/src/PriceListTools/Position.cs @@ -2,7 +2,7 @@ namespace RehauSku.PriceListTools { - public class Position + public class Position { public string Group { get; private set; } public string Sku { get; private set; } @@ -36,7 +36,7 @@ namespace RehauSku.PriceListTools Name }; - return properties.Where(p => p != null).Sum(p => p.GetHashCode()); + return string.Concat(properties.Where(p => p != null)).GetHashCode(); } } } \ No newline at end of file