Skip to content

SerializerGenerator does not supports IList generation when IsRecursive = true #203

@neuecc

Description

@neuecc

When invoke GenerateSerializerSourceCodes with IList<>, usually it works.
But if SerializerCodeGenerationConfiguration.IsRecrusive = true, throws excpetion.

repro code.

// Ok.
SerializerGenerator.GenerateSerializerSourceCodes(new[] { typeof(IList<int>) });

// Ng.
SerializerGenerator.GenerateSerializerSourceCodes(new SerializerCodeGenerationConfiguration() { IsRecursive = true }, new[] { typeof(IList<int>) });

exception message.

System.Runtime.Serialization.SerializationException: Cannot serialize type 'System.Collections.Generic.IList`1[System.Int32]' because it does not have any serializable fields nor

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugDetected as bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions