I have a base class called MeetingBase that is declared like this:
Public MustInherit Class MeetingBase(Of T As MeetingBase(Of T))
I have a derived class that is declared like this:
Public Class Meeting
Inherits MeetingBase(Of Meeting)
In the BASE class I have this code
Protected Sub MyMethod
'Do SomethingElse expects a Meeting object. So why can't I do this:
It won't even compile and is showing "Value of Type 'T' cannot be converted to 'namespace...meeting'"
So I tried this:
This gives similar error as follows:
"Value of Type 'namespace...meetingBase(Of T)' cannot be converted to 'namespace...meeting'"
I thought you can always cast a base class to the derived class. So why this message?
The namespaces are the same.
Seth B Spearman