Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Download a .NET assembly, and execute a static, parameterless method.
//Download a .NET assembly, and execute a static, parameterless method. using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using System.Net; using System.Reflection; namespace Rextester { public class Program { public static void Main(string[] args) { string in_url = Console.ReadLine(); string in_class = Console.ReadLine(); string in_method = Console.ReadLine(); WebClient wc = new WebClient(); byte[] data = wc.DownloadData(in_url); Assembly asm = Assembly.Load(data); Type typ = asm.GetType(in_class); MethodInfo proc = typ.GetMethod(in_method); proc.Invoke(null,null); } } }
run
|
edit
|
history
|
help
0
DI
Herencias
DNA Programmer
constructor execution sequence
ok
sortowania przez wstawienie
FixConsectiveDuplicates
Hi
timeleft
dxsdxsd