You may get a range from an array in C# 8. To do so you may specify numbers of an Index type (use Index instead of int as the type) and then, instead of normally pulling out a single item by a number in square brackets, instead have foo..bar in the square brackets wherein foo and bar are examples of indices. Leading a single number with the hat operator (a carat) in the square braces will find the actor at a position equal to the length of the array minus your number. For more on new array manipulations see: this
No comments:
Post a Comment