I am trying to run a linqpad query, but one of the default namespace imports has a type that is apparently shadowing the type I am trying to reference. System.Xml
is one of the default imports in linqpad, but I rarely use it. Is it possible to remove that default namespace import, so I can use my own Formatting
enum?
相关问题
- Using a namespace twice
- How to use object initializers with using statemen
- How do I copy all resources to a new namespace?
- How to change namespace
- Image PropertyItems and disposed MemoryStream
相关文章
- Why do I get the an out of memory error when I use
- Oracle USING clause best practice
- How to use default php classes in my namespace?
- Is there a namespace aware alternative to PHP'
- Function hiding and using-declaration in C++
- How to create a namespace if it doesn't exists
- Definition of enums outside the class body but ins
- shielding #include within namespace { } block?
This isn't a direct answer to your immediate question, but you can can tell LINQPad which one you want
Formatting
to mean. In your query, press theF4
key and then under the Additional Namespace Imports tab you can add the following:This tells LINQPad to declare a using alias directive for your script. Note that you should not include the word
using
before the line, LINQPad handles theat for you.