Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
Date Comparison
Customer bill information
c# specialization/overload
buble sort
WEDXSCd
CubexSoft
Examples of JS-Like higher-order functions in C#
Plt-D v.0.9.4
Random Number Generation
Test Stopwatch
Please log in to post a comment.