using directives

when pasting in code that contains "using" directives like
using IEnumerable<string>;
using static Math;

LINQPad nicely asks if it should "Move 'using' directives into Query Properties?".

However, it doesn't do this in some situations where I believe it should:

using Project = PC.MyCompany.Project;
using static PC.MyCompany.ProjectExample<SomeType>;


  • I've incorporated some improvements to this in the latest beta. It will now parse the expressions above (although it's still not completely robust).
  • Super, thank you Joe :smile:
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!