Using ArraySegment<T> instead of byte[]+offset+count

Apr 2, 2012 at 3:06 AM

For all the byte[] methods, ArraySegment is a much better alternative - the structure has been available since .NET 2.0, and Microsoft will be using it in their websockets implementation. It even eliminates the need for argument validation.

Coordinator
Apr 2, 2012 at 3:23 PM

Thank you, I'll do more research!