Difference between assembly.create instance and activator.createinstance

1,556 views

Published on

Difference between Assembly.CreateInstance and Activator.CreateInstance

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,556
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
12
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Difference between assembly.create instance and activator.createinstance

  1. 1. Difference between Assembly.CreateInstance() and Activator.CreateInstance() S.No Assembly.CreateInstance() Activator.CreateInstance() 1 Namespace: Namespace: Derives from Derives from System namespace. System.Reflection namespace. 2 Meaning: Meaning: Locates a type from this Creates an instance of the type assembly and creates an whose name is specified in the instance of it using the system specified remote domain, using the activator.In simple terms, named assembly and default Assembly.CreateInstance constructor.In simple terms, looks for a type in a particular Activator.CreateInstance can assembly. create an object of any type. 3 Does it have overload Does it have overload method to method to create objects in create objects in other app other app domains, or on domains, or on another server ? another server ? Activator.CreateInstance has Assembly.CreateInstance overloads that Method does not have Assembly.CreateInstance Method overload method to create does not have;for instance, it can objects in other app domains, create objects in other app or on another server using domains, or on another server Remoting as like using Remoting. Activator.CreateInstance Method.References:http://msdn.microsoft.com/en-us/library/system.reflection.assembly.createinstance.aspxhttp://msdn.microsoft.com/en-us/library/ms224132.aspxhttp://msdn.microsoft.com/en-us/library/system.activator.createinstance.aspxhttp://stackoverflow.com/questions/1833615/difference-between-assembly-createinstance-and-activator-createinstanceAnd, further updates on difference between questions and answers, please visit myblog @ http://onlydifferencefaqs.blogspot.in/

×