I created the following equivalent of an alias:
public class TagAttributes : Dictionary<String, String> { }
Code Analysis stated I need to mark this as serializable, which I did.
[Serializable()]
public class TagAttributes : Dictionary<String, String> { }
Next, Code Analysis stated I need to include a constructor with the following signature:
protected TagAttributes(SerializationInfo info, StreamingContext context)
From this, I know that the following method would also have to be included:
public override void GetObjectData(SerializationInfo info, StreamingContext context)
My question is, what do I put inside these methods? There is no instance, so there's nothing to reference for the serialization. This is an "alias".
I assume I would mark them as virtual. But even then, what would I have to put inside in order to serialize the dictionary instance.