meh
This commit is contained in:
parent
d2c191b394
commit
40cd2f93df
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue