Answers for "How to create a new object instance from a Type"

C#
0

How to create a new object instance from a Type

ObjectType instance = (ObjectType)Activator.CreateInstance(objectType);
ObjectType instance = (ObjectType)Activator.CreateInstance("MyAssembly","MyNamespace.ObjectType");
Posted by: Guest on July-30-2021

Code answers related to "How to create a new object instance from a Type"

C# Answers by Framework

Browse Popular Code Answers by Language