ArraySegment - Returning the actual segment C#

前端 未结 4 549
野性不改
野性不改 2020-12-10 02:50

I have been looking around on ways to return the segment which is basically held by ArraySegment in terms of offset and count. Although ArraySegment holds the complete and o

4条回答
  •  既然无缘
    2020-12-10 03:56

    Check out the answer I posted on this topic here.

    Basically all you have to do is cast ArraySegment to IList to get the functionality you expect.

提交回复
热议问题