Answers for "create an instance of the object"

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 "create an instance of the object"

C# Answers by Framework

Browse Popular Code Answers by Language