问题描述
您好,我下载了Visual Studio Express 2013,并希望能够从我将要尝试构建的应用程序(在Visual Basic或Visual C#中)调用Ruby eval()方法.我想迭代地馈送eval()方法红宝石字符串,直到它 告诉我该字符串是有效的Ruby表达式-我将继续在字符串中附加额外的代码行,直到eval()表示该字符串有效为止.我正在使用Ruby 186-25.关于Visual Studio,Visual Basic和Visual,我是一个真正的新手. C#.任何帮助将不胜感激.
Hello, I downloaded Visual Studio Express 2013 and would like to be able to call the Ruby eval( ) method from an application I will be trying to build, either in Visual Basic or Visual C#. I want to feed the eval( ) method ruby strings iteratively until it tells me that the string is a valid Ruby expression - I would keep feeding it the string with extra lines of code being appended until eval( ) says it is valid. I am using Ruby 186-25. I am a real neophyte as regards Visual Studio and Visual Basic and Visual C#. Any help would be greatly appreciated.
我还曾在Visual Basic论坛上问过这个问题,因为我尚未确定尝试使用哪种语言.
I have also asked this question on the Visual Basic forum as I have not yet determined which language to try doing this with.
感谢您的宝贵时间!
哈里
推荐答案
尝试以下链接.您需要IronRuby才能在c#中完成Ruby
Try the below link. You need IronRuby to do the Ruby in c#
http://www.codeproject.com/Articles/121408/Step-by-step-guidance-for-calling-a-IronRuby-Metho
http://www.codeproject.com/Articles/121408/Step-by-step-guidance-for-calling-a-IronRuby-Metho
http://ironruby.codeplex.com/
http://ironruby.codeplex.com/
这篇关于调用Ruby 186-25 eval()方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!