codingadventures / LINQBridgeVs

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

Are anonymous types supported when used inside a list? #46

Closed stecydube closed 5 years ago

stecydube commented 6 years ago

In trying to display a list with items made from an anonymous type the code in LinqPAD could not be compiled and complained about a possible missing reference.

Part of the generated code: truck.UnLoadCargo<List<AnonymousType<Guid, String ......

codingadventures commented 6 years ago

Hi, it should work with anonymous types, however I can see the error here: AnonymousType There no such a thing like an AnonymousType class that represents anonymous types. This is clearly a bug, I'll investigate and provide a fix in the next release

codingadventures commented 6 years ago

To fix your issue change in the linqpad script truck.UnLoadCargo<List<AnonymousType with var @object = truck.UnLoadCargo(typeof(IList)); That should retrieve the list with the anonymous type.

I will include a proper fix in the next release

codingadventures commented 5 years ago

fixed in the next release