Method

Resize

Changes the number of elements of a one-dimensional array to the specified new size.

  • size: The size of the new array.
    byte[] bytes=new byte[3];
    bytes.Resize(5).Length
    

    output:

    5