«
^
»
7.3. Indexers and operator overloading
In C#, a class type (or a struct type) may declare an
indexer
.
In the same way that a property provides access to a single value, an indexer provides access to an array of values.
In C#, a class type (or a struct type) may declare
operators
.
An operator declaration permits a class (or a struct) to define new meanings for existing operators (such as
==
,
<
,
+
,
++
).
But not for
=
.