From 490a8aab784da23a87158690504bd7f7b4748d88 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sat, 28 Nov 2020 22:48:30 +0100 Subject: [PATCH] decorate GenericDataHolder with data contract serialization information --- MLEM/Misc/GenericDataHolder.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MLEM/Misc/GenericDataHolder.cs b/MLEM/Misc/GenericDataHolder.cs index 39c789b..2bd1b22 100644 --- a/MLEM/Misc/GenericDataHolder.cs +++ b/MLEM/Misc/GenericDataHolder.cs @@ -1,13 +1,16 @@ using System; using System.Collections.Generic; +using System.Runtime.Serialization; namespace MLEM.Misc { /// /// Represents an object that can hold generic key-value based data. /// A lot of MLEM components extend this class to allow for users to add additional data to them easily. /// + [DataContract] public class GenericDataHolder { + [DataMember] private Dictionary data; ///