Is it possible to add a using declaration to a namespace globally?
For example, I want all of my classes under the “MyApp.Models” namespace to include the namespace System.Linq.Dynamic.
In asp.net you can do this for view by adding the namespace in the web.config. Is there a way to do this for class files as well?
No. It is not possible to add a global
usingdeclaration to a C# project. You must specify the complete set ofusingin each .cs file