From 09bfcc7667442a5c7374baa2a1353fbe450f62eb Mon Sep 17 00:00:00 2001 From: Creeper Lv Date: Mon, 16 May 2022 00:23:12 +0800 Subject: [PATCH] CLUNL.Localization 0.0.10.0 -Added a constructor without parameters for LocalizedString to avoid potential problem with serialization and reflection. --- CLUNL.Localization/CLUNL.Localization.csproj | 2 +- CLUNL.Localization/LocalizedString.cs | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CLUNL.Localization/CLUNL.Localization.csproj b/CLUNL.Localization/CLUNL.Localization.csproj index 63540a0..eadf73a 100644 --- a/CLUNL.Localization/CLUNL.Localization.csproj +++ b/CLUNL.Localization/CLUNL.Localization.csproj @@ -3,7 +3,7 @@ netstandard2.1 True - 0.0.9.0 + 0.0.10.0 https://github.com/creeperlv/CLUNL https://github.com/creeperlv/CLUNL diff --git a/CLUNL.Localization/LocalizedString.cs b/CLUNL.Localization/LocalizedString.cs index ff63753..ed0f64f 100644 --- a/CLUNL.Localization/LocalizedString.cs +++ b/CLUNL.Localization/LocalizedString.cs @@ -14,6 +14,15 @@ public class LocalizedString /// public object[] arguments; /// + /// Empty constructor for serialization purpose + /// + public LocalizedString() + { + arguments = new object[0]; + ID = ""; + Fallback = ""; + } + /// /// Initialize the string with LanguageID and fallback. /// ///