Content deleted Content added
m →Example: parameter misuse; |
m cite repair; |
||
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|
== Implementation ==
Line 8:
Here is a C# example of the usage of an indexer in a class:
<ref>{{cite web
|
|
| title = C# Interview Questions
| url = http://www.dotnetfunda.com/interview/exam4161-what-is-an-indexer-in-csharp-.aspx}}</ref>
Line 77:
== References ==
{{Reflist
<!--Categories-->
|