Unable to deserialize hashsets

OK, i found the solution:

    [Serializable]
    public class SerializableHashSet<T> : HashSet<T>
    {
        [JsonConstructor]
        public SerializableHashSet(IEnumerable<T> collection) : base(collection) {}
    }
2 Likes