Changhong's Technical Blog

  Home  |   Contact  |   Syndication    |   Login
  16 Posts | 0 Stories | 50 Comments | 3 Trackbacks

News

Archives

Post Categories

Blogs I read from kiwis...

Blogs I read...

If you see some code like this, you know there is something very wrong.

 

 

Why on earth should I have to deal with System.Xml, System.Threading, System.IO, System.Diagnostics, System.Runtime.InteropServices, System.Security.Cryptography, System.Net, System.Net.Sockets in a Form class?

posted on Friday, November 28, 2008 9:55 AM

Feedback

# re: Code smell – many usings 12/1/2008 2:09 PM Roy Lawson
A refactoring tool like Resharper will help you quickly identify references that you aren't using in your code.

# re: Code smell – many usings 12/1/2008 6:20 PM Changhong
Roy - I think you miss-understood my point. All the references there are used, and it is a clear sign of breaking Single Responsibility Principle.

Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification: