DataSourceGroupCollection.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 / DataSourceGroupCollection.cs / 1 / DataSourceGroupCollection.cs

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

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

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

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

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

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

        /// 
        /// 
        ///  
        public DataSourceGroup this[int index] {
            get { 
                return (DataSourceGroup) 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