开发者

List or Array with a text as its Index?

Using vb.net, is it possible to have a list of values such as:

Green
Black
Blue

and the index to be a text value such as

Table
Desk
Chair

something like this

ListColors("Chair")="Green"
ListColors("Desk")="Blue"
ListColors("T开发者_JS百科able")="Black"


Use a Dictionary(Of String, String) object: http://msdn.microsoft.com/en-us/library/xfhwa508.aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜