Answers for "c# get array subarray"

C#
0

c# get array subarray

public static T[] SubArray<T>(this T[] array, int offset, int length)
	{
		T[] result = new T[length];
		Array.Copy(array, offset, result, 0, length);
		return result;
	}
Posted by: Guest on August-19-2020

C# Answers by Framework

Browse Popular Code Answers by Language