/// <summary>
            /// Enumerator constructor
            /// </summary>
            /// <param name="container">IndexedContainerRef</param>
            public Enumerator(IndexedContainerRef <T> container)
            {
                Contract.Requires <ArgumentNullException>(container != null);

                _capturedData = container._data;
                _currentIndex = -1;
                _currentData  = default(T);
            }
Esempio n. 2
0
            /// <summary>
            /// Enumerator constructor
            /// </summary>
            /// <param name="container">IndexedContainerRef</param>
            public Enumerator(IndexedContainerRef <T> container)
            {
                if (container == null)
                {
                    throw new ArgumentNullException(nameof(container));
                }

                _capturedData = container._data;
                _currentIndex = -1;
                _currentData  = default(T);
            }