Skip to content

Instantly share code, notes, and snippets.

@VladimirReshetnikov
Created January 22, 2014 18:02
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VladimirReshetnikov/8563908 to your computer and use it in GitHub Desktop.
Save VladimirReshetnikov/8563908 to your computer and use it in GitHub Desktop.
using System;
using System.Runtime.InteropServices;
class Program
{
static void Main()
{
dynamic calc = Activator.CreateInstance(Marshal.GetTypeFromCLSID(new Guid(148736, 0, 0, 192, 0, 0, 0, 0, 0, 0, 70)));
Console.WriteLine(calc.Evaluate("2+3*5"));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment