Skip to content

Instantly share code, notes, and snippets.

@masoo
Created July 15, 2016 14:29
Show Gist options
  • Save masoo/647856fd145f6de34408a77e25c18452 to your computer and use it in GitHub Desktop.
Save masoo/647856fd145f6de34408a77e25c18452 to your computer and use it in GitHub Desktop.
ruby-csharp_script sample #7
require 'win32ole'
csharp_script = WIN32OLE.new('ruby.csharp_script.CsharpScript')
code = <<"EOS"
new int[] { 1, 3, 5, 7, 9 }
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