Question

Okay, I'm accessing the fields of a data row inside a data set using indexers, but let's consider this as just a syntactical feature. Would you go so far and call it a duck typed thing that is reduced to getters and setters, in other words a data transfer object?

Was it helpful?

Solution

Yes, it is. In fact, there's syntax in VB that makes it even more obvious. You can write:

Dim row As DataRow
row!Name = "Foo"     'same as row("Name")

OTHER TIPS

It can be.

A dictionary of strings can be one too.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top