Activity Stream
48,167 MEMBERS
6968 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 24
  1.     
    #11
    ლ(ಠ益ಠლ)
    Website's:
    extremecoderz.com
    Well 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.

  2.   Sponsored Links

  3.     
    #12
    Member
    Website's:
    litewarez.net litewarez.com triniwarez.com
    so 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


  4.     
    #13
    Respected Developer
    It all goes to one assembly. Welcome to the world of C#. Say goodbye to the world of scripting .

  5.     
    #14
    Member
    Great thread Jay, loving it. You and Hyperz already answered my question so it's all good.

  6.     
    #15
    Member
    Website's:
    litewarez.net litewarez.com triniwarez.com
    yea 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


  7.     
    #16
    Member
    But you still have to declare it right? with "using" ?

    Like in Hyperz thread:
    Code: 
    using Hyperz.SharpLeech.Engine;
    That way all the class, functions..etc he made are used/included, no?

  8.     
    #17
    Member
    Website's:
    litewarez.net litewarez.com triniwarez.com
    yes 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


  9.     
    #18
    Member
    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.

  10.     
    #19
    Member
    Website's:
    litewarez.net litewarez.com triniwarez.com
    i 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


  11.     
    #20
    ლ(ಠ益ಠლ)
    Website's:
    extremecoderz.com
    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.

Page 2 of 3 FirstFirst 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. SSH Command Variables
    By Maverick in forum Server Management
    Replies: 1
    Last Post: 11th Jan 2012, 05:40 AM
  2. C++ Variables & IO [Lesson 2]
    By NucleA in forum Web Development Area
    Replies: 1
    Last Post: 11th Dec 2010, 08:30 PM
  3. How to streamline objects in PHP!
    By litewarez in forum Tutorials and Guides
    Replies: 8
    Last Post: 29th May 2010, 05:26 PM
  4. Swap photo/avatar variables
    By Golden Falcon in forum IP.Board
    Replies: 7
    Last Post: 12th Feb 2010, 06:18 PM
  5. Optimizing the mysqld variables
    By Lease in forum Technical and Security Tutorials
    Replies: 0
    Last Post: 14th Jan 2008, 05:30 AM

Tags for this Thread

BE SOCIAL