You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've used SerializerGenerator.GenerateCode for avoid Unity's dynamic code generate.
But generated code seems can't avoid dynamic code generate when class is nested.
If call Serializers.Register(new A_Serializer()) before Serializers.Register(new B_Serializer()), A_Serializer runs this._serializer0 = context.GetSerializer<B>(schema0); but B_Serializer is not registered yet, so B_Serializer was generated by dynamic code generation.
This is very inconvenient.
In Unity, must avoid dynamic code generation.
Please solve this problem.
The text was updated successfully, but these errors were encountered:
This commit ease custom serialalizer registration because app code can register custom serializer on demand and/or detect not registered serializer(s) exists. It should help more efficient development/debugging and more robust application.
I've used
SerializerGenerator.GenerateCode
for avoid Unity's dynamic code generate.But generated code seems can't avoid dynamic code generate when class is nested.
For example class A has property of class B.
It generates there code.
I generate there serializer helper code, too.
If call
Serializers.Register(new A_Serializer())
beforeSerializers.Register(new B_Serializer())
, A_Serializer runsthis._serializer0 = context.GetSerializer<B>(schema0);
but B_Serializer is not registered yet, so B_Serializer was generated by dynamic code generation.This is very inconvenient.
In Unity, must avoid dynamic code generation.
Please solve this problem.
The text was updated successfully, but these errors were encountered: