CSharp examples for System:Array Create
Create a new array by removing given amount of element on the left.
// Permission is hereby granted, free of charge, to any person obtaining a copy using System;//w w w.j ava 2 s.com public class Main{ /// <summary> /// Create a new array by removing given amount of element on the left. /// </summary> public static T[] TrimLeft<T> (T[] array, int amount) { T[] result = new T[array.Length - amount]; Array.Copy (array, amount, result, 0, result.Length); return result; } }