Yeah. you can do that lite:

using System.Windows

will work fine, but you are basically loading all the child libraries from within it - which as el_j explained, its really not necessary.

Further to that, if you only want to make use of a single function, for example, "HttpWebRequest" - which is a child of System.Net - you can just do:

System.Net.HttpWebRequest webReq = new System.Net.HttpWebRequest;

rather than "using System.Net" and load the entire thing.

That way, you still get to use what you need, but don't load the entire library.
jayfella Reviewed by jayfella on . [c#] variables, ifs, simple math and drawing objects Here is a little tutorial explains how to declare and use strings and integers, how to perform a basic integrity check and how to make use of these values by using an object. It also shows how to create these objects without using the Design view of Visual Studio. The code has been commented to make it easier to read, and is fully functional. You can simply copy-paste its entirety into a new project. using System; using System.Collections.Generic; using System.ComponentModel; using Rating: 5