Is it possible to add a constructor extension method ? I want to add a List< T > constructor to receive specific amount of bytes out of a given partially filled buffer (w
No, but if you changed your AddRange signature to return the list instance, then you could at least do
AddRange
var list = new List().AddRange(array, n);
which imho is probably clearer than overloading the constructor anyway.