Load DLL at runtime in C# and invoke a method
Vložit
- čas přidán 11. 07. 2020
- This video shows how we can write a simple code to load an assembly file (DLL) and create an object to invoke a method.
Credit:
Music: CZcams Audio Library - Věda a technologie
It took me way too long to find this video. Thank you very much.
Thanks for watching
Thank you, ur video didn't really solve my problem, but I found a solution while watching it ^) Maybe it is because of this relaxing music as I was about to smash my notebook, and this is the calm I needed
You are inmortal, friend... :)
Thank you very much! Superb video.
thanks bro really appreciated
it works for me, Thank U
Excelent explanation!
Thanks!
Hi, may i ask why u use CreateInstance? Is it for to instantiate the dll class? If yes, what if i use static class in my dll so tht my user can use it without any instantiate it first, do i still have to instantiate the dll class everytime i want to use its members?
Thanks for the video. Succed to to it in VS but not in Unity. Don't know why.
Im using vstudio 2022, and the "type" returned null
Thank you
CS0009 datagrid columns. dll could not be opened invalid culture name in C#
Gracias!
Thanks
hiii!! do you know how in C# , load a Third part DLL , I´ve just only has documentation of the Methods of the DLL, but I do not Know what is inside. COuld you guide me? please
Hello! How to do the same method if i want to import multiple dlls(i wouldnt know which method i am using)? Thankyou!
I would think that the best way would be to make all your DLLs have the same “main” function that you can invoke. So that you just GetMethod the same for all “MainInit” or whatever and you can Invoke them all the same. That’s my thoughts.
Thank you very much! Does this support concurrency, that is, on a website where I search for products?
Thanks for watching this video. Concurrency in .NET application can be achieved using 'async await'.
How to generate traces at runtime like instrumentation without changing the application code using c#
hi there , any other way also to use reflections in c#?
Thanks for watching this video. There are multiple ways to use reflection. There is System.Reflection namespace in dotnet.