DataSourceDescriptorCollection.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 / Designer / CompMod / System / ComponentModel / Design / Data / DataSourceDescriptorCollection.cs / 1 / DataSourceDescriptorCollection.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

namespace System.ComponentModel.Design.Data 
{ 
    using System;
    using System.Collections; 

    /// 
    /// 
    ///     Type safe collection of DataSourceDescriptor objects. 
    /// 
    public class DataSourceDescriptorCollection : CollectionBase 
    { 
        /// 
        ///  
        /// 
        public DataSourceDescriptorCollection() : base() {
        }
 
        /// 
        ///  
        ///  
        public int Add(DataSourceDescriptor value) {
            return List.Add(value); 
        }

        /// 
        ///  
        /// 
        public int IndexOf(DataSourceDescriptor value) { 
            return List.IndexOf(value); 
        }
 
        /// 
        /// 
        /// 
        public void Insert(int index, DataSourceDescriptor value) { 
            List.Insert(index, value);
        } 
 
        /// 
        ///  
        /// 
        public bool Contains(DataSourceDescriptor value) {
            return List.Contains(value);
        } 

        ///  
        ///  
        /// 
        public void CopyTo(DataSourceDescriptor[] array, int index) { 
            List.CopyTo(array, index);
        }

        ///  
        /// 
        ///  
        public void Remove(DataSourceDescriptor value) { 
            List.Remove(value);
        } 

        /// 
        /// 
        ///  
        public DataSourceDescriptor this[int index] {
            get { 
                return (DataSourceDescriptor) List[index]; 
            }
 
            set {
                List[index] = value;
            }
        } 
    }
} 

// 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