Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

How to create a new object instance from a Type

ObjectType instance = (ObjectType)Activator.CreateInstance(objectType);
ObjectType instance = (ObjectType)Activator.CreateInstance("MyAssembly","MyNamespace.ObjectType");
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #create #object #instance #Type
ADD COMMENT
Topic
Name
3+9 =