When working on ADO.NET , I faced indexers that exist only in C# , What are these indexers ?
Printable View
When working on ADO.NET , I faced indexers that exist only in C# , What are these indexers ?
An indexed property represents a collection of values, allowing the client code to use array like syntax to access a specific value in the collection.
Hmm , how would you convert this to C# then .It says there is no Item property .
ThanksCode:TreView.Nodes.Add(dv.Item(0).Row.Item(i).ToString)
Whenever you come across an item property in VB.NET, most likely the C# equivalent is an indexer.
So if you see this
The C# equivalent would beVB Code:
TreView.Nodes.Add(dv.Item(0).Row.Item(i).ToString)
Code:TreView.Nodes.Add(dv[0].Row[i].ToString());
It looks like fixed rule DevGrp . Thanks dude !:)