Indexers


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

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




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


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center