Equivalent staticto VB's Shared. General methods are usually placed in Helper classes because they do not need an instance of the class to run.
Type T indicates that this is a general method (this is a new feature in VB 9 and C # 3). A generic method effectively takes a type as an argument or returns a generic type.
VB: 9/# 3. , . , , Shared, , , VB , .
- , , , . Module class. VB.
( , , " ", Nothing, VB ).
Imports System.Runtime.CompilerServices
<Extension()> _
Public Shared Function GetValueOrDefault(Of T)(ByVal reader As IDataReader, ByVal columnName As String) As T
Dim returnValue As T = Nothing
End Function