codingadventures / LINQBridgeVs

Dumps the content of variables during debugging in Visual Studio to LINQPad
MIT License
127 stars 21 forks source link

bridged Dictionary<int,ClassX> doesnt load internal IEnumerable property in ClassX #31

Closed Pavel-Malezhyk closed 6 years ago

Pavel-Malezhyk commented 6 years ago

bridged Dictionary<int,ClassX> doesnt load internal IEnumerable property in ClassX. It fill it with null.

public class ClassX { public IEnumerable ys; }

codingadventures commented 6 years ago

Do you mean the dump in LINQPad? dictionaries and enumerables should be fully supported by either linqbridge and LINQPad.

Could you please provide me with the full snippet? By looking at the snippet it doesn't seem you instantiate/initialise the property ys anywhere

codingadventures commented 6 years ago

I've repro the issue, it seems that IEnumerable and IEnumerable<> are not serialized, I'll look into it now

Pavel-Malezhyk commented 6 years ago

Yes - ClassX has IEnumerable, if it has List - all works correctly public class ClassX { public IEnumerable ys {get; set;} }

codingadventures commented 6 years ago

yeah if you open your application exe or dll with ilspy you will notice that the property IEnumerable is marked as non serialized. I will provide a fix soon for that, but it will need some testing too before I release it

codingadventures commented 6 years ago

This is fixed and will be available with the next release.