Choose the code segment which will ensure that MyDictionary is type safe?

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?

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)



Leave a Reply 1

Your email address will not be published. Required fields are marked *


networkmanagers

networkmanagers

I have the same idea. A