Vb.net - Functions and arbitrary typed generics

Is there a way to create a function / subrecord that accepts an arbitrary typed generic file in vb.net.

+1


source to share


2 answers


It goes something like this:



Public Function DoThing(Of T)(ByVal value As T)

      

+3


source


You can read about generic types in Visual Basic here http://msdn.microsoft.com/en-us/library/w256ka79.aspx



0


source







All Articles