Show the default namespaces and assembly references in the query properties
By default, LinqPad imports several namespaces (System, System.Linq...) and references several assemblies (System, System.Core...). This is fine in most cases, but sometimes I'd like to be able to remove some namespaces or references, and currently there's no way to do that. These default namespaces and assemblies should appear in the query properties so that they can be removed (it could be an option for users who don't want that)
In LINQPad 6, you can now see all namespace imports in Query Properties, and remove default namespaces as required.
-
Fábio Beirão commented
I was about to post this same idea (you just got 2 votes).
My use case is that I want to give c# language extensions (https://github.com/louthy/language-ext) a try in Linqpad, but for instance the `List` type is clashing with the default imported `System.Collections.Generic`. I need to remove that default import, but I have no way of doing that.
-
Omid Rad commented
Could be check boxes next to default namespaces in the Query Properties windows