System.ComponentModel.ArraySubsetEnumerator.ArraySubsetEnumerator C# (CSharp) Method

ArraySubsetEnumerator() public method

public ArraySubsetEnumerator ( Array array, int count ) : System
array System.Array
count int
return System
        public ArraySubsetEnumerator(Array array, int count) {
            Debug.Assert(count == 0 || array != null, "if array is null, count should be 0");
            Debug.Assert(array == null || count <= array.Length, "Trying to enumerate more than the array contains");
            this.array = array;
            this.total = count;
            current = -1;
        }