From b4f5d15bac545262dd2944920cf7bd6ae9a254c2 Mon Sep 17 00:00:00 2001 From: Ahmed Yasin Koculu Date: Fri, 5 Aug 2022 10:35:30 +0200 Subject: [PATCH] Fix validation type. Thanks to @Konstantin Semenenko. --- src/ZoneTree/Core/ZoneTreeLoader.cs | 2 +- src/ZoneTree/Directory.Build.props | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ZoneTree/Core/ZoneTreeLoader.cs b/src/ZoneTree/Core/ZoneTreeLoader.cs index 0704129..fc0a57c 100644 --- a/src/ZoneTree/Core/ZoneTreeLoader.cs +++ b/src/ZoneTree/Core/ZoneTreeLoader.cs @@ -46,7 +46,7 @@ private void ValidateZoneTreeMeta() ZoneTreeMeta.KeyType, typeof(TKey).FullName); - if (!string.Equals(ZoneTreeMeta.ValueType, typeof(TKey).FullName)) + if (!string.Equals(ZoneTreeMeta.ValueType, typeof(TValue).FullName)) throw new TreeValueTypeMismatchException( ZoneTreeMeta.ValueType, typeof(TValue).FullName); diff --git a/src/ZoneTree/Directory.Build.props b/src/ZoneTree/Directory.Build.props index f828f08..f868ffc 100644 --- a/src/ZoneTree/Directory.Build.props +++ b/src/ZoneTree/Directory.Build.props @@ -5,8 +5,8 @@ Ahmed Yasin Koculu ZoneTree ZoneTree - 1.1.1.0 - 1.1.1.0 + 1.1.2.0 + 1.1.2.0 Ahmed Yasin Koculu ZoneTree ZoneTree is a persistent, high-performance key-value database for .NET. It can operate in memory or on a disk. (Optimized for SSDs)