DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2

Thread: Indexers

  1. #1
    yahoo-guy Guest

    Indexers


    Hi,
    CAN any 1 xplain why we need indexers in c#.thanx in advance

  2. #2
    Peter Drayton Guest

    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




Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


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


Sponsored Links