Late Binding
Late binding is the instantiation and manipulation of types at run time. This is most often used by scripting engines and applications that accept pluggable modules—for example, an application server that allows modules to be loaded dynamically.
Instantiation
Instances of types can be created either by using the System.Activator class or by calling the Invoke method of a ConstructorInfo instance obtained from System.Type.GetConstructor. The methods are the equivalents of the java.lang.Class.newInstance and java.lang.reflect.Constructor.newInstance methods.
The Activator class accepts an array of objects that will be used as constructor arguments and attempts to locate a constructor that offers the best possible match. Using the ConstructorInfo ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access