Skip to content

Commit

Permalink
CLUNL.Localization 0.0.10.0
Browse files Browse the repository at this point in the history
-Added a constructor without parameters for LocalizedString to avoid potential problem with serialization and reflection.
  • Loading branch information
creeperlv committed May 15, 2022
1 parent cc7a422 commit 09bfcc7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CLUNL.Localization/CLUNL.Localization.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<Version>0.0.9.0</Version>
<Version>0.0.10.0</Version>
<PackageLicenseExpression></PackageLicenseExpression>
<PackageProjectUrl>https://github.com/creeperlv/CLUNL</PackageProjectUrl>
<RepositoryUrl>https://github.com/creeperlv/CLUNL</RepositoryUrl>
Expand Down
9 changes: 9 additions & 0 deletions CLUNL.Localization/LocalizedString.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ public class LocalizedString
/// </summary>
public object[] arguments;
/// <summary>
/// Empty constructor for serialization purpose
/// </summary>
public LocalizedString()
{
arguments = new object[0];
ID = "";
Fallback = "";
}
/// <summary>
/// Initialize the string with LanguageID and fallback.
/// </summary>
/// <param name="ID"></param>
Expand Down

0 comments on commit 09bfcc7

Please sign in to comment.