G
Goran Djuranovic
Hi all,
I have a custom made list (MyList) that inherits from CollectionBase. Is it possible to prohibit the casting of that list into other objects? I would like to get an error at design-time.
For example,
Dim myList As New MyList
Dim yourList As New IList = CType(MyList, IList) <---- prohibit this
Thanks
Goran Djuranovic
I have a custom made list (MyList) that inherits from CollectionBase. Is it possible to prohibit the casting of that list into other objects? I would like to get an error at design-time.
For example,
Dim myList As New MyList
Dim yourList As New IList = CType(MyList, IList) <---- prohibit this
Thanks
Goran Djuranovic