Click here to Skip to main content
12,996,388 members (67,245 online)
Rate this:
Please Sign up or sign in to vote.
See more:
This isn't really something I need help on, but more wondering why or which way is better from asking experienced programmers.




Is there a reason for both of them? Does using the .Get save it time from not having to realize it needs to "Get" the query string? Just a silly question that has been bugging me so I've decided to ask.
Posted 29-Nov-08 19:13pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

There is no difference. The Item property get method (that you use in the first case) just calls the Get method.

The reason that both exists is probably to support programming languages that can not use an indexer (the first alternative).

Another alternative to get the values is the GetValues method, and that one is different. It returns the values as a string array instead of concatenating them together as a comma separated list.

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170609.2 | Last Updated 30 Nov 2008
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100