Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# loading assembly at runtime

using System.Reflection;

var dll = Assembly.LoadFile(@"C:assembly.dll"); // full path requied
Type type = dll.GetType("myNamespace.myClass");
dynamic c = Activator.CreateInstance(type);
c.myPublicMethod();
Comment

PREVIOUS NEXT
Code Example
Csharp :: vb.net open file with default program 
Csharp :: SIMPLE HTTP REQUEST C# 
Csharp :: ask for administrative permission 
Csharp :: instantiate scale object 
Csharp :: get enum int by name 
Csharp :: blazor alert 
Csharp :: c# transparent label 
Csharp :: remove items from list c# condition 
Csharp :: unity change color of sprite in script 
Csharp :: emboss button in android app 
Csharp :: unity access phone camera 
Csharp :: exit programm c# 
Csharp :: c sharp if string equals 
Csharp :: c# enum check in string value 
Csharp :: west of loathing 
Csharp :: c# method summary new line 
Csharp :: dart extending list 
Csharp :: access a local varible in a different function C# 
Csharp :: The terminal process failed to launch: Path to shell executable "dotnet" is not a file or a symlink. 
Csharp :: how to execute linux command from c# 
Csharp :: c# writeline list 
Csharp :: import time C# 
Csharp :: c# countdown timer menutes 
Csharp :: c# afficher texte 
Csharp :: unity point between two positions 
Csharp :: unity normalize float 
Csharp :: wpf set color in code 
Csharp :: c# remove special characters from string 
Csharp :: C# How to read users input and display it 
Csharp :: how to get hours and minutes from second in c# 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =