Look at Activator.CreateInstance().
myObject = (MyAbstractClass)Activator.CreateInstance("AssemblyName", "TypeName");
or
var type = Type.GetType("MyFullyQualifiedTypeName");
var myObject = (MyAbstractClass)Activator.CreateInstance(type);
More Related Contents:
- How do I get the path of the assembly the code is in?
- Set object property using reflection
- How to create a new object instance from a Type
- How can I evaluate C# code dynamically?
- How to Load an Assembly to AppDomain with all references recursively?
- How can I get all classes within a namespace?
- Get all derived types of a type
- Using C# reflection to call a constructor
- How To Test if Type is Primitive
- Retrieving the calling method name from within a method [duplicate]
- How can I create an instance of an arbitrary Array type at runtime?
- Using IsAssignableFrom with ‘open’ generic types
- c# Creating an unknown generic type at runtime
- Discovering derived types using reflection
- How do I create a generic class from a string in C#? [duplicate]
- Get all types implementing specific open generic type
- Determine if a type is static
- Dynamic table name in linq [duplicate]
- How can you loop over the properties of a class?
- GetEntryAssembly for web applications
- Why is TargetInvocationException treated as uncaught by the IDE?
- Finding all Namespaces in an assembly using Reflection (DotNET)
- Get all properties which marked certain attribute
- Using GetProperties() with BindingFlags.DeclaredOnly in .NET Reflection
- Look if a method is called inside a method using reflection
- Comparing Object properties using reflection
- Using Reflection to create a DataTable from a Class?
- Is there any way to get a reference to the calling object in c#?
- Get private Properties/Method of base-class with reflection
- Reflection Performance – Create Delegate (Properties C#)