mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-29 15:58:33 +01:00
decorate GenericDataHolder with data contract serialization information
This commit is contained in:
parent
028e322d2f
commit
490a8aab78
1 changed files with 3 additions and 0 deletions
|
@ -1,13 +1,16 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Runtime.Serialization;
|
||||||
|
|
||||||
namespace MLEM.Misc {
|
namespace MLEM.Misc {
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents an object that can hold generic key-value based data.
|
/// 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.
|
/// A lot of MLEM components extend this class to allow for users to add additional data to them easily.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[DataContract]
|
||||||
public class GenericDataHolder {
|
public class GenericDataHolder {
|
||||||
|
|
||||||
|
[DataMember]
|
||||||
private Dictionary<string, object> data;
|
private Dictionary<string, object> data;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in a new issue