This commit is contained in:
adelikat 2020-02-02 10:29:13 -06:00
parent d2c191b394
commit 40cd2f93df
1 changed files with 2 additions and 0 deletions

View File

@ -23,11 +23,13 @@ namespace BizHawk.Emulation.Common
// methods named "ShouldSerialize*" are detected and dynamically invoked by JSON.NET // methods named "ShouldSerialize*" are detected and dynamically invoked by JSON.NET
// if they return false during serialization, the field/prop is omitted from the created json // if they return false during serialization, the field/prop is omitted from the created json
// ReSharper disable once UnusedMember.Global
public bool ShouldSerializeData() public bool ShouldSerializeData()
{ {
return Data.Count > 0; return Data.Count > 0;
} }
// ReSharper disable once UnusedMember.Global
public bool ShouldSerializeObjects() public bool ShouldSerializeObjects()
{ {
return Objects.Count > 0; return Objects.Count > 0;