CAN any 1 xplain why we need indexers in c#.thanx in advance
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
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.
"yahoo-guy" <email@example.com> wrote in message
> CAN any 1 xplain why we need indexers in c#.thanx in advance
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