Remove Range from byte array - CSharp System

CSharp examples for System:Byte Array

Description

Remove Range from byte array

Demo Code


using System.Threading.Tasks;
using System.Text;
using System.Linq;
using System.IO;/*  w w  w. ja  va  2 s.c o  m*/
using System.Drawing;
using System.Collections.Generic;
using System;

public class Main{
        public static byte[] RemoveRange(byte[] data, int index, int length)
        {
            var buffer = data.ToList();
            buffer.RemoveRange(index, length);

            return buffer.ToArray();
        }
}

Related Tutorials