Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

.net loading classes

Posted on 2002-04-15
9
Medium Priority
?
172 Views
Last Modified: 2010-05-02
In Java I use a class loader to load my class files which gives me the flexibility to load class files anytime during program execution and from anywhere I have access to.

In .net do I have the same flexibility?  How do I do that?

100 extra points (300 ttl) if I get a correct answer by 1:00 cst today (4/15)

Thanks - Michael
0
Comment
Question by:mnicolls
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 7

Expert Comment

by:Joe_Griffith
ID: 6942805
I don't think you have any control over "Loading" of classes.  You compile to MSIL and then the routines are "Loaded" as needed by the Jitter.
0
 
LVL 22

Expert Comment

by:CJ_S
ID: 6942878
So you can totally ommit the loading through functions ;-)
0
 
LVL 1

Expert Comment

by:justinhemphill
ID: 6943224
When you create a new instance of a class, it is loaded.  So :

Dim o as New myClass

will call the constructor of myClass and store a new instance of it in o.

You could have a startup class that creates new instances of all your classes.  This in theory would speed up access to these classes throughout your program, but unless your classes are very intensive, it would hardly be worth it.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:mnicolls
ID: 6944849
I understand that class files are automatically loaded upon instantiation.  The question is if I - by choice - decide to go out and get a class file from a place that is unknown at deployment time and only known at runtime can I specify that place.

I don't know what the 'Jitter' is but if it loads classes then can I ask it for a specific class at a specific URL by giving it a String.  Thanks so far - Michael
0
 
LVL 1

Expert Comment

by:justinhemphill
ID: 6945050
You will need to use late binding then.
0
 

Author Comment

by:mnicolls
ID: 6945937
Okay but how?
0
 
LVL 1

Accepted Solution

by:
justinhemphill earned 800 total points
ID: 6947194
0
 
LVL 16

Expert Comment

by:twalgrave
ID: 7755078
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in Community Support that this question is:
- points to justinhemphill
Please leave any comments here within the
next seven days.
0
 

Expert Comment

by:SpideyMod
ID: 7812516
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question