this is my first SO question! I would like to instantiate a COM object and cast it to IDispatchEx so that I can enumerate its members. Here is an example:
I\'m trying to figure out how to have Castle Winds开发者_JAVA百科or resolve dependancies for objects created usingActivator.CreateInstance.
It it possible to call a function on an external class? The external class runs on another machine (say its locations is mymachine.com).
on initialize a class by string variable in c#? I already found out how to create an class using a string
I\'m using the following code to access the Windows Explorer Shell\'s band site service: Guid GUID_TrayBandSiteService = new Guid(0xF60AD0A0, 0xE5E1, 0x45cb, 0xB5, 0x1A, 0xE1, 0x5B, 0x9F, 0x8B, 0x29,
What is the difference between Activator.CreateInstance and factory? Can they be used interchangeably? Or stil do we need a fac开发者_开发百科tory pattern?Activator.CreateInstance is a static method t
I have my custom class Customer with its properties. I added DataContract mark above the class and DataMember to properties and it was working fine, but I\'m calling a service class\'s function, passi
I want to create an instance of a type that I specify in a generic method that I have. This type has a number of overloaded constructors. I\'d like to be able to pass arguments to the constructors, bu
My scenario is that I have a .net application (let\'s say a Console App) that creates AppDomains.It then needs to create instances and call methods on Types that are in that AppDomain.Each AppDomain h
I need a performance enhanced Activator.CreateInstance() and came across this article by Miron Abramson that uses a factory to create the instance in IL and then cache it. (I\'ve included code below f