我有这样的代码:参数类型是不能分配给参数类型
List<Pair<string, string>> docs = new List<Pair<string, string>>();
iErr = ftpconnect.ListAllDocuments(docs, build.BuildId.ToString());
ListAllDocuments的
界面原型是:
Int32 ListAllDocuments(List<Pair<string, string>> DocList, string Path);
我得到一个错误
错误21: 'OperatorPanelWrapper.FtpTransportLibWrapper.ListAllDocuments(System.Collections.Generic.List < Operator)的最佳重载方法匹配Panel.Pair < string,string >>,string)'有一些无效参数
为什么我得到这个错误?
你的'Pair'类是什么? – Habib 2013-02-15 09:53:40
这是我的模板班,通常对 – user2071019 2013-02-15 09:57:55
其他错误呢?通常你会得到第二个错误,说明这些类型有什么问题。 – CodesInChaos 2013-02-15 10:18:04