'<modulename>'에 정의된 확장 메서드 '<methodname>'은(는) 제네릭이 아니거나 형식이 자유로운 매개 변수를 포함하지 않으므로 형식 인수를 사용할 수 없습니다.
업데이트: 2007년 11월
Extension method '<methodname>' defined in '<modulename>' is not generic (or has no free type parameters) and so cannot have type arguments
제네릭 매개 변수를 포함하지 않거나 기존에 형식이 지정되어 있지 않은 제네릭 매개 변수를 포함하지 않는 확장 메서드에 대한 호출에서 형식 인수를 지정했습니다. 예를 들어 다음 코드는 이 오류를 발생시킵니다.
' The extension method is not generic.
<Extension()> _
Sub Example(ByVal str As String)
' Body of the Sub.
End Sub
Dim str = "hi"
'' The call to Example specifies a type argument.
'' Not valid.
'str.Example(Of String)()
오류 ID: BC36907
이 오류를 해결하려면
확장 메서드 정의에 형식 매개 변수를 추가합니다.
프로시저 호출에서 다른 형식 인수를 제거합니다.