|
-
Apr 27th, 2003, 11:46 AM
#1
Thread Starter
Sleep mode
Indexer ?[Resolved]
When working on ADO.NET , I faced indexers that exist only in C# , What are these indexers ?
Last edited by Pirate; Apr 28th, 2003 at 03:13 AM.
-
Apr 27th, 2003, 01:56 PM
#2
PowerPoster
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.
-
Apr 27th, 2003, 02:04 PM
#3
Thread Starter
Sleep mode
Hmm , how would you convert this to C# then .It says there is no Item property .
Code:
TreView.Nodes.Add(dv.Item(0).Row.Item(i).ToString)
Thanks
-
Apr 27th, 2003, 02:42 PM
#4
Frenzied Member
Whenever you come across an item property in VB.NET, most likely the C# equivalent is an indexer.
So if you see this
VB Code:
TreView.Nodes.Add(dv.Item(0).Row.Item(i).ToString)
The C# equivalent would be
Code:
TreView.Nodes.Add(dv[0].Row[i].ToString());
Dont gain the world and lose your soul
-
Apr 27th, 2003, 05:07 PM
#5
Thread Starter
Sleep mode
It looks like fixed rule DevGrp . Thanks dude !
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|