joe_pool_is Posted June 16, 2006 Posted June 16, 2006 List<T> does not have an Item() method? You have got to be kidding me? After I get my hundreds of objects added to my new List, how am I expected to access them? Quote Avoid Sears Home Improvement
joe_pool_is Posted June 16, 2006 Author Posted June 16, 2006 Ah! Old book on .NET. Apparently, now you don't have to include the List1.Item[int i] when itterating through a list. Just use List1[int i]. False alarm. Stand down, get back to work, or whatever you do. :) Quote Avoid Sears Home Improvement
Leaders snarfblam Posted June 16, 2006 Leaders Posted June 16, 2006 Many collection types work like this. This isn't a .Net thing. This is a C# thing (and it is available but not necessary in VB since the Item property is also available). In C# it's referred to as an indexer. In VB it is an indexed property that is also the default property. If you were using J# you would be using the get_Item function. It's all a matter of how the language presents the underlying IL. Quote [sIGPIC]e[/sIGPIC]
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.