You work as the application developer at Hi-Tech.com. You create a new custom dictionary named MyDictionary.
Choose the code segment which will ensure that MyDictionary is type safe?
A.
Class MyDictionary Implements Dictionary (Of String,String)
B.
Class MyDictionary Inherits HashTable
C.
Class MyDictionary Implements IDictionary
D.
Class MyDictionary
End Class
Dim t as New Dictionary (Of String, String)
Dim dict As MyDIctionary= CType (t,MyDictionary)
I have the same idea. A