0
Awaiting feedback

Enable custom LINQ query evaluation (as in Immediate window)

assaft 3 months ago in New features updated 3 weeks ago 2

I have a collection named "actual", whose items contain an enum member named Type. I'd like to play with the collection in various ways, but Visual Studio's Immediate window wouldn't let me:

In this case, I wanted to see which types of items the collection contains - do we have any items of type X, how many items of type Y, etc. An OzCode-Immediate window would be very handy for me.

Answer

Answer
Awaiting feedback

Thank you for the request. 

Regarding your request to see which types of items the collection contains, we suggest using OzCode's Custom Expression & Conditional Search features to see the information.

What Visual Studio & OzCode version are you using? 

Please be sure you have the latest OzCode version.

Answer
Awaiting feedback

Thank you for the request. 

Regarding your request to see which types of items the collection contains, we suggest using OzCode's Custom Expression & Conditional Search features to see the information.

What Visual Studio & OzCode version are you using? 

Please be sure you have the latest OzCode version.

I'm using VS2017, OzCode 4.

What I want is the full power of LINQ for analyzing collections. The example I gave before can't be solved with either custom expressions (I don't want to go over thousands of items, looking at each one's type) or coditional search (I can search for obj.GetType() == SomeType, but then I'll have to do another search for ThisType, and I still don't know whether the collection contains anything of ThatType - this is what grouping is for! Other uses I can see for this are filtering (Select), aggregations, and other things that LINQ does so nicely - and I'd love to utilize its power and convenience for debugging as well.