PrepAway - Latest Free Exam Questions & Answers

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?

PrepAway - Latest Free Exam Questions & Answers

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)

One Comment on “Choose the code segment which will ensure that MyDictionary is type safe?


Leave a Reply