Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8400327
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T21:32:14+00:00 2026-06-09T21:32:14+00:00

Possible Duplicate: Why should you remove unnecessary C# using directives? How is performance affected

  • 0

Possible Duplicate:
Why should you remove unnecessary C# using directives?
How is performance affected by an unused using statement

Do unused usings in c# affect runtime performance? If yes, How do so?

using System;
using System.Collections.Generic;
using System.ComponentModel; -----//Unused
using System.Data;---------------//Unused
using System.Drawing;-----------//Unused
using System.Text;-------------//Unused
using System.Windows.Forms;
using System.Threading;------//Unused
using System.Linq;----------//Unused
using System.IO;-----------//Unused
using System.Diagnostics;-//Unused
using System.Data.OleDb;
using OBID; 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T21:32:15+00:00Added an answer on June 9, 2026 at 9:32 pm

    NO, but It effects the IDE performance and the compilation process of your project.
    I can give you a short example. If you have ever used coderush http://devexpress.com/Products/Visual_Studio_Add-in/Coding_Assistance/ which is from devexpress, their IDE optimizer and code optimizer will also suggest you to remove unused namespaces.

    Update: Here is more use information from Dmitriy’s Blog
    There are few reasons why you should remove unused usings in you C# code.

    •It is useless code, that just creates clutter in your source code and it also confusing for the developer because you don’t know which namespaces are actually used.
    •Over time as your code changes it can accumulate a lot of unused using statements which create even more clutter in you code.
    •It can make your compiling faster, since compiler does not have to look up all those extra unused namespaces.
    •It will help avoid name conflict with new items that you going to add to your solution if both of those have same names.
    •It will reduce number of items in your Visual Studio editor auto completion
    

    There are couple ways to remove those unused usings, you can do it individually on each file

    http://msdn.microsoft.com/en-us/library/bb514115.aspx

    You also can download plugin called batchFormat for Visual Studio 2010 that can help you to remove all unused usings for the whole project.

    http://www.addictivetips.com/windows-tips/batch-format-remove-unused-usings-and-format-visual-studio-document/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Should Usings be inside or outside the namespace sa1200 All using directives
Possible Duplicate: Should Usings be inside or outside the namespace I am looking at
Possible Duplicate: Should Usings be inside or outside the namespace What is the difference
Possible Duplicate: Should you declare methods using overloads or optional parameters in C# 4.0?
Possible Duplicate: Remove non breaking space ( ) from between elements using jquery How to
Possible Duplicate: Should I use != or <> for not equal in TSQL? Behavior
Possible Duplicate: Should C++ eliminate header files? In languages like C# and Java there
Possible Duplicate: Should PHP 'Notices' be reported and fixed? Till date i was ignoring
Possible Duplicate: Should ‘else’ be kept or dropped in cases where it’s not needed?
Possible Duplicate: Tasks should show up only if the user has been assigned it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.