我在下面从C#转换到VB.NET的代码上遇到以下错误(原始代码可以在这里找到:https://developer.linkedin.com/sites/default/files/LinkedInAuth.rar.zip):
类'QueryParameterComparer'必须为接口'System.Collections.Generic.IComparer(Of QueryParameter)'实现'Function Compare(x As oAuthBase2.QueryParameter,y as oAuthBase2.QueryParameter)As Integer'.
我究竟需要改变什么?
''这个文件由Fatih YASAR于2009年11月27日修改'
Imports System.Security.Cryptography
Imports System.Collections.Generic
Imports System.Text
Imports System.Web
Public Class oAuthBase2
''' <summary>
''' Provides a predefined set of algorithms that are supported officially by the protocol
''' </summary>
Public Enum SignatureTypes
HMACSHA1
PLAINTEXT
RSASHA1
End Enum
''' <summary>
''' Provides an internal structure to sort the query parameter
''' </summary>
Protected Class QueryParameter
Private m_name As String = Nothing
Private m_value As String …Run Code Online (Sandbox Code Playgroud) vb.net ×1