Question:You are writing a custom dictionary. The custom-dictionary class is named MyDictionary.
You need to ensure that the dictionary is type safe. Which code segment should you use? - (VB.Net) 

A Class MyDictionary
Inherits Dictionary(Of String, String)
End Class 

B Class MyDictionary
Inherits HashTable
End Class 

C Class MyDictionary
Implements IDictionary
End Class 

D Private Class MyDictionary
End Class
Private t As New Dictionary(Of String, String)()
Private dictionary As MyDictionary = DirectCast(t, MyDictionary) 

+ Answer
+ Report
Total Preview: 970

Copyright © 2024. Powered by Intellect Software Ltd