1. If the index is to big to exceed the array, the error will show System.IndexOutOfRangeException: Index was outside the bounds of the array
2. Array.IndexOf(Array array, object value), search for object value and return the first index that matchs with the value. If not found, it will return -1
Example:
Following 2 are the same:
Single line Collection of objects
Built-in functions provide for Array type
Array inherit from multiple interfaces
It still works by changing from string[ ] to IList
沒有留言:
張貼留言