Hello everybody,
If anyone could tell me what's wrong in this folloeing code snippet, I'll appreciate.
'1. Create 4 classes (I've removed all internal code since it is useless for the test)
Public Class LockableDataObject
End Class
Public Class Business
Inherits LockableDataObject
End Class
Public Class LockableDataManager(Of CustomType As LockableDataObject)
End Class
Public Class BusinessManager
Inherits LockableDataManager(Of Business)
End Class
Module main
Public Sub main()
'This line works
Dim MyManager As LockableDataManager(Of Business) = New BusinessManager
'This line doesn't
(Is this a bug? or is this wanted?)
Dim MyManager2 As LockableDataManager(Of LockableDataObject) = New BusinessManager
End Sub
End Module
If anyone could tell me what's wrong in this folloeing code snippet, I'll appreciate.
'1. Create 4 classes (I've removed all internal code since it is useless for the test)
Public Class LockableDataObject
End Class
Public Class Business
Inherits LockableDataObject
End Class
Public Class LockableDataManager(Of CustomType As LockableDataObject)
End Class
Public Class BusinessManager
Inherits LockableDataManager(Of Business)
End Class
Module main
Public Sub main()
'This line works
Dim MyManager As LockableDataManager(Of Business) = New BusinessManager
'This line doesn't
(Is this a bug? or is this wanted?)
Dim MyManager2 As LockableDataManager(Of LockableDataObject) = New BusinessManager
End Sub
End Module