kkemerait
Member
Is there an alternative way to identify within a generic method the type that was passed in (of T) without having to create a bogus object and check typename?
Public Shared Function Create(Of T)() As iManager(Of T)
Dim BogusVar as T -- don't want to do it this way if possible to avoid
Select Case TypeName(BogusVar)
Case ("iSomeInterface")...
Thanks!
Public Shared Function Create(Of T)() As iManager(Of T)
Dim BogusVar as T -- don't want to do it this way if possible to avoid
Select Case TypeName(BogusVar)
Case ("iSomeInterface")...
Thanks!