在 Visual Basic 中使用变量变量名

在 Visual Basic 中使用变量变量名

问题描述:

如何在 Visual Basic (.Net) 中使用可变变量名?

How to use a variable variable name in Visual Basic (.Net)?

dim test as String

test = "mysetting"

My.Settings.{test} = "something"

这应该和做一样:

My.Settings.mysetting = "something"

嗯?

My.Settings(test) = "something"