Results 11 to 20 of 24
-
17th Jun 2010, 03:39 PM #11OPლ(ಠ益ಠლ)Website's:
extremecoderz.comWell when you create your class, you can change it to:
namespace LiteWarez.Security
and then you call it by:
using LitwWarez.Security;
You dont have to do that.
You can instead do it like:
LiteWarez.Security.myStaticString(args);
which is better if you arent going to make use of the entire class.
-
17th Jun 2010, 03:42 PM #12MemberWebsite's:
litewarez.net litewarez.com triniwarez.comso your saying that no matter what files you create there all included/loaded ready to be used!! even if there not being used by a particular process :/
Join Litewarez.net today and become apart of the community.
Unique | Clean | Advanced (All with you in mind)
Downloads | Webmasters
Notifications,Forum,Chat,Community all at Litewarez Webmasters
-
17th Jun 2010, 03:52 PM #13Respected Developer
It all goes to one assembly. Welcome to the world of C#. Say goodbye to the world of scripting .
-
17th Jun 2010, 08:32 PM #14Member
Great thread Jay, loving it. You and Hyperz already answered my question so it's all good.
-
17th Jun 2010, 08:43 PM #15MemberWebsite's:
litewarez.net litewarez.com triniwarez.comyea i get it now, so that all cs files are mainly for the development of an application, once compiled it "combines" all files into a global assembly!
Join Litewarez.net today and become apart of the community.
Unique | Clean | Advanced (All with you in mind)
Downloads | Webmasters
Notifications,Forum,Chat,Community all at Litewarez Webmasters
-
17th Jun 2010, 08:45 PM #16Member
But you still have to declare it right? with "using" ?
Like in Hyperz thread:
Code:using Hyperz.SharpLeech.Engine;
-
17th Jun 2010, 08:50 PM #17MemberWebsite's:
litewarez.net litewarez.com triniwarez.comyes el, it should take the same principles as all other languages.
If your creating a Form then you should do use System.Windows.Forms and then "extend" the class with :Form to use that base class.
Also: Hyperz or Jay.
if do the following:
using System.Windows
will that give me all children of Windows such as Forms or do i have to declare the exact name space ?
If you can use just use System.Windows then this would be bad right ? because your using unneeded shizzle!Join Litewarez.net today and become apart of the community.
Unique | Clean | Advanced (All with you in mind)
Downloads | Webmasters
Notifications,Forum,Chat,Community all at Litewarez Webmasters
-
17th Jun 2010, 08:55 PM #18Member
In theory, even if that's possible you should only use exactly what you need, to have better speed, memory usage ..etc. I'm still new, very new with this, just using the same concept as scripting, not sure if that's right or even affects the outcome with C#.
Like including two files in PHP when you only need one, I guess.
-
17th Jun 2010, 08:58 PM #19MemberWebsite's:
litewarez.net litewarez.com triniwarez.comi think im at the same level as yourself when it comes to C#, im just learning... i know it would be bad, im just learning if its possible.
Join Litewarez.net today and become apart of the community.
Unique | Clean | Advanced (All with you in mind)
Downloads | Webmasters
Notifications,Forum,Chat,Community all at Litewarez Webmasters
-
17th Jun 2010, 10:14 PM #20OPლ(ಠ益ಠლ)Website's:
extremecoderz.comYeah. 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.
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
SSH Command Variables
By Maverick in forum Server ManagementReplies: 1Last Post: 11th Jan 2012, 05:40 AM -
C++ Variables & IO [Lesson 2]
By NucleA in forum Web Development AreaReplies: 1Last Post: 11th Dec 2010, 08:30 PM -
How to streamline objects in PHP!
By litewarez in forum Tutorials and GuidesReplies: 8Last Post: 29th May 2010, 05:26 PM -
Swap photo/avatar variables
By Golden Falcon in forum IP.BoardReplies: 7Last Post: 12th Feb 2010, 06:18 PM -
Optimizing the mysqld variables
By Lease in forum Technical and Security TutorialsReplies: 0Last Post: 14th Jan 2008, 05:30 AM
themaCreator - create posts from...
Version 3.24 released. Open older version (or...