1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-06-01 21:03:38 +02:00

decorate GenericDataHolder with data contract serialization information

This commit is contained in:
Ell 2020-11-28 22:48:30 +01:00
parent 028e322d2f
commit 490a8aab78

View file

@ -1,13 +1,16 @@
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
namespace MLEM.Misc {
/// <summary>
/// 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.
/// </summary>
[DataContract]
public class GenericDataHolder {
[DataMember]
private Dictionary<string, object> data;
/// <summary>