【发布时间】:2020-07-25 08:06:56
【问题描述】:
我在 IronRuby 中使用 C# DLL ServiceStack.redis。表单设计师是 SharpDevelop。代码是:
require 'redis/ServiceStack.Redis' # redis is subfolder in project
...
def Button1Click(sender, e)
object = ServiceStack::Redis.PooledRedisClientManager.new
end
错误信息是:
System.MissingMethodException: undefined method `PooledRedisClientManager' for ServiceStack::Redis:Module
但在 dotPeek 中,我可以看到 C# 代码是:
namespace ServiceStack.Redis
{
public class PooledRedisClientManager
{
...
public PooledRedisClientManager()
: this("localhost")
{
}
}
}
如何导入 C# DLL 并在 IronRuby 中使用?
【问题讨论】:
标签: c# .net sharpdevelop ironruby