template parameter ctype

  1. A

    Question Down-cast with as type a template-parameter

    I have a base class B and serveral derived classes D1, D2, D3 etc. I created a template class T like this: Public Class T(Of X) Public Function GetDerived(Byref Base As B) as X Return CType(Base, X) End Function End Class I use the template class with D1 or D2 or, any other...
Top Bottom