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
SerializerCodeGenerationConfiguration.IsRecursive is nice feature, thanks.
But if top type is array, doesn't recursive.
publicclassMyClass{// can't generate MyClass3Serializer.// If MyClass2 MyProperty, can generate MyClass3Serializer.publicMyClass2[]MyProperty{get;set;}}publicclassMyClass2{publicMyClass3MyProperty{get;set;}}publicclassMyClass3{publicintMyProperty{get;set;}}
repro full code.
varsettings=newSerializerCodeGenerationConfiguration{OutputDirectory=Path.GetTempPath(),SerializationMethod=SerializationMethod.Array,Namespace="Hoge"+".GeneratedSerializers",IsRecursive=true,PreferReflectionBasedSerializer=false};varresult=SerializerGenerator.GenerateSerializerSourceCodes(settings,typeof(MyClass));foreach(variteminresult){// expected : MyClass, MyClass2, MyClass3// actual : MyClass, MyClass2Console.WriteLine(item.TargetType);}
The text was updated successfully, but these errors were encountered:
SerializerCodeGenerationConfiguration.IsRecursive
is nice feature, thanks.But if top type is array, doesn't recursive.
repro full code.
The text was updated successfully, but these errors were encountered: