How to apply custom type serializers WITHIN a scope?

I have cases where I would like to apply a custom JsConfig<T>.SerializeFn = x => x.ToString(); within a specific scope inside my app, but I can’t seem to find the correct syntax.

When I try using (var js = JsConfig.CreateScope("")) there is no hook to apply the custom serialization on the resulting jsconfigscope object.

Any suggestions?

You can’t scope delegates like this, only configuration.

dang. ideas to workaround this?

No the delegates are static, they can’t be scoped.