C# DİNAMİK DLL KULLANIMI
Makalenin orjinali yukardaki adreste...
var
dll = Assembly.LoadFile(@
"C:\Users\Acer\Documents\Visual Studio 2015\Projects\dll2\dll2\bin\Debug\dll2.dll"
);
var
tip= dll.
GetType
(
"dll2.Class1"
);
var
istek = Activator.CreateInstance(tip);
var
metod = tip.GetMethod(
"topla"
);
sonuc=(int) metod.Invoke(istek,
new
object[] {2,3});
MessageBox.Show(
""
+sonuc);
Hiç yorum yok