0

I would like to replace some functionalities in several classes of an existing project. Is it possible to use the keyword Imports (or Using in c#) globally for a project?

Meaning for example i would like to specify "Imports System.Math" somewhere in my project settings and would expect this namespace to be available in all classes of my project afterwards.

If this is not possible, can i somewhere set default imports to automatically add "Imports System.Math" to any class which i create from now on?

H W
  • 2,556
  • 3
  • 21
  • 45
  • 1
    This is possible using VB.NET. Project-level imports are possible with VB.NET. However, I don't think it's possible with a C# project. – m-smith Nov 27 '14 at 11:57
  • I'm afraid this is also a duplicate of the following question: http://stackoverflow.com/questions/789239/does-c-sharp-support-project-wide-default-namespace-imports-like-vb-net – m-smith Nov 27 '14 at 12:02
  • Thanks to both of you, this was exactly the information that i was looking for. – H W Nov 27 '14 at 12:05

0 Answers0