mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-11-29 03:12:35 +03:00
parent
3f36c15b68
commit
87e2d0f85e
@ -867,7 +867,7 @@ on a new line! ""Wow!"", the masses cried";
|
|||||||
}
|
}
|
||||||
|
|
||||||
// It's also possible to define custom Indexers on objects.
|
// It's also possible to define custom Indexers on objects.
|
||||||
// All though this is not entirely useful in this example, you
|
// Although this is not entirely useful in this example, you
|
||||||
// could do bicycle[0] which returns "chris" to get the first passenger or
|
// could do bicycle[0] which returns "chris" to get the first passenger or
|
||||||
// bicycle[1] = "lisa" to set the passenger. (of this apparent quattrocycle)
|
// bicycle[1] = "lisa" to set the passenger. (of this apparent quattrocycle)
|
||||||
private string[] passengers = { "chris", "phil", "darren", "regina" };
|
private string[] passengers = { "chris", "phil", "darren", "regina" };
|
||||||
|
Loading…
Reference in New Issue
Block a user