编辑:异常错误我在尝试调用父方法时遇到错误,这在以前从未发生过。
我正在调用其他类中的函数从ItemSet
Microsoft.TeamFoundation.VersionControl.Client.dll
在c#
中调用部分:
ItemSet itemsSet = GetItemSet(variable1, variable2);
string stringSet = GetStringSet(variable1, variable2);
vb.net
中的方法:
Public Function GetStringSet(ByVal variable1 As String, ByVal variable2 As String) As String
Return variable1 + variable2
End Function
'以下方法是trowing exception
Public Function GetItemSet(ByVal variable1 As String, ByVal variable2 As String) As ItemSet
Dim items As ItemSet = somelocal function to get ItemSet which works
Return items
End Function
Bin
文件夹已cleaned
。Cleaned
和rebuild
。String function
,以检查是否有可能使用旧版dll
。ItemSet itemsSet = GetItemSet(variable1, variable2);
未注释的情况下,我甚至无法进入父方法。为什么会出现这种情况的任何想法?
答案 0 :(得分:0)
您尚未正确声明功能请尝试以下功能
Public Function GetStringSet(ByVal variable1 As String, ByVal variable2 As String) As String Return variable1 & variable2 End Function Public Function GetItemSet(ByVal variable1 As String, ByVal variable2 As String) As ItemSet Dim items As ItemSet = somelocal function to get ItemSet which works Return items End Function