XmlNodeList.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Xml / System / Xml / Dom / XmlNodeList.cs / 1 / XmlNodeList.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
// [....] 
//-----------------------------------------------------------------------------
 
namespace System.Xml { 
    using System.Collections;
 
    // Represents an ordered collection of nodes.
    public abstract class XmlNodeList: IEnumerable {

        // Retrieves a node at the given index. 
        public abstract XmlNode Item(int index);
 
        // Gets the number of nodes in this XmlNodeList. 
        public abstract int Count { get;}
 
        // Provides a simple ForEach-style iteration over the collection of nodes in
        // this XmlNodeList.
        public abstract IEnumerator GetEnumerator();
 
        // Retrieves a node at the given index.
        [System.Runtime.CompilerServices.IndexerName ("ItemOf")] 
        public virtual XmlNode this[int i] { get { return Item(i);}} 
    }
} 


// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK