DataContractSerializer not Serializing member of class that inherits ISerializable
问题 I have this class: using System; using System.Collections.Generic; using System.Runtime.Serialization; namespace Grouping { [Serializable] public class Group<T> : HashSet<T> { public Group(string name) { this.name = name; } protected Group(){} protected Group(SerializationInfo info, StreamingContext context):base(info,context) { name = info.GetString("koosnaampje"); } public override void GetObjectData(SerializationInfo info,StreamingContext context) { base.GetObjectData(info,context); info