What is the equivalent or workaround for a typedef in VB.NET?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am coding a VB.NET application which heavily deals with a collection type. See the code below: Dim sub_Collection As System.Collections.Generic.Dictionary(Of String, System.Collections.ObjectModel.Collection) I have to type the above line for so many times. If I changed the collection type, then I have to make the change for all the instances. So if there is a way to use "a typedef equivalent", then I can get rid of all these problems. I tried with imports, but it is only for namespaces and it can't be used for classes. Any helping hand