public int[] RemoveAllTest(int val, int[] arr) { DLinkedList dllist = new DLinkedList(arr); dllist.RemoveAll(val); return(dllist.ToArray()); }