Antoine Aubry

Results 111 comments of Antoine Aubry

> @aaubry Why not a simpler IsList condition? > > ```cs > private static bool IsList(Type type) > { > return typeof(IEnumerable).IsAssignableFrom(type); > } > ``` > > The solution...

You could solve this problem with a custom `INodeTypeResolver` that inspects the content of the scalars to determine their type. I wrote a proof of concept like this: ```c# public...

@M3psipax I don't foresee any potential problem with this approach.

I agree that this needs fixing. Is is necessary to add a property to control this behavior? Is there any use case where one would not want the `YamlIgnore` to...

I'm not sure that this change is correct. What are you trying to achieve ? I don't think that the type inspectors should use the type resolver at that point.

Hi, Your comments make a lot of sense, I agree that the interfaces are too limited. That's probably due to not needing myself to implement them, and lack of feedback...

A possible fix for this issue is in #203. This eliminates `EventReader`, and equivalent functionality becomes available as extension methods for IParser. This removes the design flaws of EventReader, and...

You are correct that this is a limitation of `IYamlTypeConverter`. A possible workaround is to pass it an instance of ISerializer, but I agree that this is not ideal. The...

@antoinebj While it is true that the interface could be improved, it seems suitable to your use case. There's no need to implement any visitor. This is how I would...

This feature has been released in [version 12.0.1](https://github.com/aaubry/YamlDotNet/releases/tag/v12.0.1).