hazzik / DelegateDecompiler

A library which is able to decompile a delegate or a method body to its lambda representation
MIT License
522 stars 62 forks source link

Adding Decompile extension methods for non-generic IQueryable (#177) #178

Closed RichardSinden closed 3 years ago

RichardSinden commented 3 years ago

Hi, This resolves #177. I'm trying to use the Decompile extension with a class defined at runtime using the TypeBuilder. This means I only have a non-generic IQueryable type. As mentioned in issue #177 there are no non-generic Decompile extension methods. I could call the generic one at runtime using reflection but the code to do that is already in the DecompiledQueryProvider, it's just not accessible without the non-generic Decompile extension method, so I've added it and a couple of tests. I didn't go particularly crazy on the tests because the non-generic CreateQuery just calls the generic one. Thanks, Richard

hazzik commented 3 years ago

Thanks

hazzik commented 2 years ago

Released in 0.30.0