logo

Crowdly

Browser

Add to Chrome

public static IGameUIFactory Load(string dll) { var asm = Assembly.LoadFro...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

public static IGameUIFactory Load(string dll)

{

var asm = Assembly.LoadFrom(dll);

var type = asm.GetTypes()

.First(t => typeof(IGameUIFactory).IsAssignableFrom(t));

return (IGameUIFactory)Activator.CreateInstance(type)!;

}

Чому рефлексивний спосіб менш безпечний?

0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on do.ipo.kpi.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome