We create a Web Form in Visual Studio, a .cs file means code
file class is automatically create. That .cs file means class has default
usings for namespace.
But generally we don't use all namespaces in that class so we want remove unused
namespaces from file. We can remove
namespace manually but it takes time and need full knowledge of class
library so we can use Visual Studio .
Step 1: Right Click
in .cs File.
Step 2: Move on
Step 3: Click on Remove Unused Usings.
that we have only those namespaces in the file these are using.