The ArraySegment struct assists us when working with segments of arrays. Instead of handling the offset and the number of elements separately for each segment we can instantiate the ArraySegment struct and get an object that describes a specific segment. The following video clip explains that.

More code samples, slides and video clips about this topic can be found in my C# Fundamentals course at

Leave a Reply

Your email address will not be published. Required fields are marked *