开发者

Pass Interface into function for use with Create<T>

I have this code :

var proxy = XmlRpcProxyGen.Create<IMessageRpc>();
var proxy2 = XmlRpcProxyGen.Create<ITestRpc>();

Create prototype is XmlRpcProxyGen.Create<T>

I would like use a function like this :

public object GetProxy(XXX)
{
    return mlRpc开发者_开发问答ProxyGen.Create<XXX>();
}


public object GetProxy<T>()
{
    return XmlRpcProxyGen.Create<T>();
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜