System.Windows.Forms.ByteCollection.ToArray C# (CSharp) Method

ToArray() public method

Copies the content of the collection into an array.
public ToArray ( ) : byte[]
return byte[]
        public byte[] ToArray()
        {
            byte[] data = new byte[this.Count];
            this.CopyTo(data, 0);
            return data;
        }