+ 1

Example of "strings" and "characters" index in C# indexers

This is the last statement from the lesson on indexers: "Arrays use integer indexes, but indexers can use any type of index, such as strings, characters, etc." Can anyone give example for this "strings" and "characters" index?

4th Jan 2017, 8:43 AM
Ajani AbdulGaniy A
Ajani AbdulGaniy A - avatar
1 Odpowiedź
+ 6
Array["String"]; Array["C"]; Array[1];
4th Jan 2017, 8:51 AM
Valen.H. ~
Valen.H. ~ - avatar