-
Indexers
Hi,
CAN any 1 xplain why we need indexers in c#.thanx in advance
-
Re: Indexers
Indexers are used to make an object seem to be an array. Along with
properties and events, indexers are one of the reasons C# is sometimes
termed a component-oriented language (vs object-oriented languages like Java
or C++).
Of course, underneath the covers indexers are really just syntactic sugar -
they are actually just parameterized properties, and properties in turn are
really just metadata hints to logically group getter and setter methods that
the compiler synthesizes.
--Peter
http://staff.develop.com/peterd
"yahoo-guy" <aseem_kapoor@yahoo.com> wrote in message
news:3b344d27$1@news.devx.com...
>
> Hi,
> CAN any 1 xplain why we need indexers in c#.thanx in advance
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
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks