Array Section - CSharp System

CSharp examples for System:Array Element

Description

Array Section

Demo Code


using System.Collections.Generic;
using System.Collections;
using System;/*from   www .j  av a  2s .  c o m*/

public class Main{
        public static byte[] ArraySection(byte[] data, int index, int count)
        {
            byte[] section = new byte[count];
            Array.Copy(data, index, section, 0, count);
            return section;
        }
}

Related Tutorials