クラス名に基づいてクラスの 1 つのインスタンスを作成する次のコードがあります。
'Get a System.Type corresponding to the name of the parent class
Dim tt As Type = Type.GetType(item.ParentClass)
'Create an instance of the specified type using the types default constructor
Dim theObject As Object = Activator.CreateInstance(tt)
のように完全なクラスがある場合、これは正常に機能しますが、これを justで MainClassName.Namespace.ClassName
実行しようとすると、何もありません。ClassName
tt
ClassName
次のように完全修飾名を使用して取得する方法はありますかMainClassName.Namespace.ClassName