라이브러리에 작은 C# 클래스를 만들었습니다.IronRuby에서 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에 위치하고 있습니다 : \ 문서 및 설정 \ 참고 MyUser 내 문서 프로젝트 \ 비주얼 스튜디오 2008 \ \ \ Project1의 \ helloWorldLib \ 빈 \ 디버그 \ helloWorldLib.dll
방법 IronRuby 스크립트에서 SayHelloWorld에 전화 해 주시겠습니까?
나는 이것이 매우 단순한 것으로 알고 있지만 많은 연구 끝에 일관된 코드 예제를 찾을 수없는 것 같습니다.
감사합니다.