Created
July 15, 2016 14:26
-
-
Save masoo/f9e38e256f074fdba7e7c56e3d62d0ec to your computer and use it in GitHub Desktop.
ruby-csharp_script sample #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'win32ole' | |
csharp_script = WIN32OLE.new('ruby.csharp_script.CsharpScript') | |
code = <<"EOS" | |
1 | |
EOS | |
result = csharp_script.EvaluateAsync(code) | |
p result |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment