A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/msgpack/msgpack-cli/issues/203 below:

SerializerGenerator does not supports IList generation when IsRecursive = true · Issue #203 · msgpack/msgpack-cli · GitHub

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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4