Skip to content

Instantly share code, notes, and snippets.

@masoo
Created July 15, 2016 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masoo/1770f7b8006b436e8c151cc81a9adf93 to your computer and use it in GitHub Desktop.
Save masoo/1770f7b8006b436e8c151cc81a9adf93 to your computer and use it in GitHub Desktop.
ruby-csharp_script sample #1
require 'win32ole'
csharp_script = WIN32OLE.new('ruby.csharp_script.CsharpScript')
code = <<"EOS"
#r "System"
using System;
for (int i=0; i<10; i++) {
Console.WriteLine(i.ToString(" 0"));
}
EOS
csharp_script.EvaluateAsync(code)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment