3 ms·
Again, I'm not saying there shouldn't be a default limit. I'm saying the limit should be per type, not for the whole serialization. It can be something as triv
by Arnavion 6y ago
Again, I'm not saying there shouldn't be a default limit. I'm saying the limit should be per type, not for the whole serialization.
It can be something as trivial as "PSHashTable is allowed to serialize without limit. Every other type is limited to N levels, unless the user sets `$SERIALIZATION_LIMIT[System.Type]` to some other value." Or make the `-Depth` parameter a `Dictionary<System.Type, int>`.