Skip to content

Commit

Permalink
Merge pull request #12 from Carnagion/development
Browse files Browse the repository at this point in the history
Merge v2.0.2 into stable
  • Loading branch information
Carnagion authored Aug 7, 2022
2 parents eb2f045 + b0467ba commit df24477
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion GDSerializer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<!-- Workaround as Godot does not know how to properly load NuGet packages -->
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageVersion>2.0.1</PackageVersion>
<PackageVersion>2.0.2</PackageVersion>
<Title>GDSerializer</Title>
<Authors>Carnagion</Authors>
<Description>An XML (de)serialization framework for Godot's C# API.</Description>
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ It supports (de)serialization of almost any C# type including collections and ma
**GDSerializer** is available as a [NuGet package](https://www.nuget.org/packages/GDSerializer/), which can be installed either through an IDE or by manually including the following lines in a Godot project's `.csproj` file:
```xml
<ItemGroup>
<PackageReference Include="GDSerializer" Version="2.0.1"/>
<PackageReference Include="GDSerializer" Version="2.0.2"/>
</ItemGroup>
```
Its dependencies may need to be installed as well, in a similar fashion.
Expand Down
2 changes: 1 addition & 1 deletion Serialization/Serializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ public XmlNode Serialize(object instance, Type? type = null)
.Where(pair => pair.Item2 is not null && pair.Item2.Serializable)
.Select(pair => pair.member)
.ToArray();
if (toDeserialize.Any() && !deserialized.Select(pair => pair.Item2).ContainsAll(toDeserialize))
if (toDeserialize.Any() && !toDeserialize.All(deserialized.Select(pair => pair.Item2).Contains))
{
throw new SerializationException(node, $"One or more mandatory properties or fields of {type.GetDisplayName()} were not deserialized");
}
Expand Down

0 comments on commit df24477

Please sign in to comment.