From 1bb5418bc1cd9bc7ca14d8cf509bb695b1dfc804 Mon Sep 17 00:00:00 2001 From: Arkadiusz Biel Date: Tue, 3 Dec 2024 13:53:55 +0000 Subject: [PATCH] introduce method of internal to make other protected and virtual --- .../Serialization/Serializers/DictionaryItemSerializer.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/uSync.Core/Serialization/Serializers/DictionaryItemSerializer.cs b/uSync.Core/Serialization/Serializers/DictionaryItemSerializer.cs index 468726b8..f5eea6a2 100644 --- a/uSync.Core/Serialization/Serializers/DictionaryItemSerializer.cs +++ b/uSync.Core/Serialization/Serializers/DictionaryItemSerializer.cs @@ -94,7 +94,8 @@ protected override SyncAttempt DeserializeCore(XElement node, S return SyncAttempt.Succeed(item.ItemKey, item, ChangeType.Import, details); } - private IEnumerable DeserializeTranslations(IDictionaryItem item, XElement node, SyncSerializerOptions options) + protected virtual IEnumerable DeserializeTranslations(IDictionaryItem item, XElement node, SyncSerializerOptions options) => DeserializeTranslationsInternal(item, node, options); + private IEnumerable DeserializeTranslationsInternal(IDictionaryItem item, XElement node, SyncSerializerOptions options) { var translationNode = node?.Element("Translations"); if (translationNode == null) return Enumerable.Empty();