我在库中创建了一个小型 C# 类。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace helloWorldLib
{
public class Greeter
{
public string SayHelloWorld(string name)
{
return "Hello world " + name;
}
}
}
图书馆位于
C:\Documents and Settings\myUser\My Documents\Visual Studio 2008\Projects\Project1\helloWorldLib\bin\Debug\helloWorldLib.dll
如何从 IronRuby 脚本调用 SayHelloWorld?
我知道这看起来很简单,但经过大量研究,我似乎找不到一致的代码示例。
非常感谢!