Indexer (programming): Difference between revisions

Content deleted Content added
m top: caps
AnomieBOT (talk | contribs)
m Dating maintenance tags: {{Dead link}} {{Confusing}}
Line 1:
{{Confusing|reason=is this a C# or a general OO concept? Surely the interesting thing is the use of the keyword 'this', not what is emphasised here? Why is this whole article only sourced to one C# forum post (the other forum post is a dead link). Maybe an example of use of the example class would demonstrate the purpose of the construct. Wikipedia is not a manual, guidebook or textbook [[WP:NOTHOWTO]].|date=April 2015}}
In [[object-oriented programming]], an '''indexer''' allows instances of a particular class or struct to be indexed just like arrays.<ref>{{cite web
| accessdate = 2011-08-01
Line 7:
| publisher = Bulletin: SURESHKUMAR.NET FORUMS
| title = C# - What is an indexer in C#
| url = http://forums.sureshkumar.net/vb-asp-net-interview-technical-questions/16320-c-what-indexer-c.html}}</ref>{{dead link|date=April 2015}}
 
== Implementation ==