Is it possible to have an external file which stores some raw code (not C#, possibly something simple like Javascript or VB Script) which contains a number of functions, with arguments containing data from the parent application and catches the return the data back to the C# application. If so, how can it be done?
Share
If you want to use a non-CLR language, the simplest way might be using System.Diagnostics.Process to shell out to the executable/interpreter of your choice and parse the stdout from that. You can of course also communicate over more sophisticated mechanisms like named pipes, TCP/IP, HTTP, etc, but that requires writing code on both sides.
There are some on-demand c# ‘interpreters’ ( http://www.csscript.net/, http://www.codeproject.com/KB/dotnet/nscript.aspx) but I wouldn’t recommend them. Mainly because there is no way of knowing what kind of support you are going to get with future versions of .NET.