Table of Contents

Method ActivatorCreateInstance

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

ActivatorCreateInstance<T>(string, string)

Creates an instance of the given type using the default constructor. Type is specified using its name and assembly name where it is located.

public static T? ActivatorCreateInstance<T>(string asmName, string typeName)

Parameters

asmName string

The name of the assembly containing the type.

typeName string

The name of the type to create.

Returns

T

An instance of the specified type, or null if the type cannot be found.

Type Parameters

T

The type to which created object is casted.