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:
parent
028e322d2f
commit
490a8aab78
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue