Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
好的,我正在使用索引器访问数据集中数据行的字段,但让我们认为这只是一个语法特征。您是否会走到这一步,称它为简化为 getter 和 setter 的鸭子类型的东西,换句话说,是数据传输对象?
是的。事实上,VB 中的语法使它更加明显。你可以写:
Dim row As DataRow row!Name = "Foo" 'same as row("Name")
有可能。
字符串字典也可以是一个。