Hai group,
System.Activator is a class,
Contains methods to create types of objects locally or remotely, or obtain
references to existing remote objects.
Activator.GetInstance:
The CreateInstance method creates an instance of a
type defined in an assembly by invoking the constructor that best matches the
specified arguments. If no arguments are specified then the constructor that
takes no parameters, that is, the default constructor, is invoked. Binder &
BindingFlags will be used to search for suitable constructer in
Assembly.
Activator.GetObject :
GetObject is used to create an proxy for a running remote object,server
activated, or XML Web Service .Proxy will be created by giving parameters such
as Type & URL path to remote object / Type,URL path & Channel
data
Regards,
Kishore.
----- Original Message -----
Sent: Monday, June 20, 2005 11:14
AM
Subject: Question Of The Day !!!! --
(20-06-2005)
Question
Of The Day !!!! -- (20-06-2005)
Reply
|
|
| From: Nasha |
Hi All,
Question of the Day is :- When would you
use activator.getobject and
activator.createinstance?
If you have any questions that can be added to the Question
Bank please post them on your user group or mail them to [EMAIL PROTECTED] .
You can find all the interview questions on MumbaiUserGroup
at http://groups.msn.com/MumbaiUserGroup/netinterviewquestionsmsnw
.
Please post all your answers on the usergroup only as even
others need to know your answer coz if therez anything missing
then they can post the same. The idea behind this is to have an
answer covering as many points as possible. We will pick the
best answer and post it in Question Bank with the member's name.
-- Please post your queries and comments for my articles in
the user group for the benefit of all. I hope this step from my
end is helpful to all of us. You can find all articles written
by me at my personal blog http://spaces.msn.com/members/nasha.
Regards,
Namratha ( Nasha )
. | | View other groups in this
category.
|