6
Answers

What is the usage of delegate in C#?

Joe Wilson

Joe Wilson

10y
980
1
Please, Give example about the subject.
Answers (6)
0
Hemant Srivastava

Hemant Srivastava

NA 9k 2.8m 11y
Jagged arrays are faster and have different syntax.
They are faster because they use the "newarr", vector IL calls internally.
0
Vulpes

Vulpes

NA 98.3k 1.5m 11y
Even if the rows have the same length, a jagged array is sometimes preferable to a rectangular array because it's easy to extract a whole row and pass it to another method, say, for further processing.

With a rectangular array, you have to create a single dimensional array and copy elements to it for the row you're interested in.