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)
正确答案:A
答案解析:有

微信扫一扫手机做题