G
Guest
I can't get Extension Methods to work in Visual Basic 2008 Express.
Says "Type 'Extension' is not defined."
Looks like the library included with the Express edition is crippled.
What am I missing?
Here's the code...
Imports System.Runtime.CompilerServices
Module ExtensionMethods
<Extension()> Public Function Test(ByVal str As String) As String
Return str
End Function
End Module
Says "Type 'Extension' is not defined."
Looks like the library included with the Express edition is crippled.
What am I missing?
Here's the code...
Imports System.Runtime.CompilerServices
Module ExtensionMethods
<Extension()> Public Function Test(ByVal str As String) As String
Return str
End Function
End Module