Click here to Skip to main content
15,895,812 members
Articles / Programming Languages / C#

Basics of .NET Collections in C#

Rate me:
Please Sign up or sign in to vote.
3.46/5 (32 votes)
10 Dec 2008CPOL6 min read 326.4K   2.6K   73  
This article focuses on managing collections in .NET Framework 2.0.
namespace DotNetCollections.CollectionsExp
{
    partial class FrmIcollection
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.gbStaticMethods = new System.Windows.Forms.GroupBox();
            this.btnCopyTo = new System.Windows.Forms.Button();
            this.groupBox1 = new System.Windows.Forms.GroupBox();
            this.btnSycRoot = new System.Windows.Forms.Button();
            this.btnIsSynchronized = new System.Windows.Forms.Button();
            this.btnCount = new System.Windows.Forms.Button();
            this.label1 = new System.Windows.Forms.Label();
            this.gbStaticMethods.SuspendLayout();
            this.groupBox1.SuspendLayout();
            this.SuspendLayout();
            // 
            // gbStaticMethods
            // 
            this.gbStaticMethods.Controls.Add(this.btnCopyTo);
            this.gbStaticMethods.Location = new System.Drawing.Point(7, 29);
            this.gbStaticMethods.Name = "gbStaticMethods";
            this.gbStaticMethods.Size = new System.Drawing.Size(140, 88);
            this.gbStaticMethods.TabIndex = 2;
            this.gbStaticMethods.TabStop = false;
            this.gbStaticMethods.Text = "Methods";
            // 
            // btnCopyTo
            // 
            this.btnCopyTo.Location = new System.Drawing.Point(6, 19);
            this.btnCopyTo.Name = "btnCopyTo";
            this.btnCopyTo.Size = new System.Drawing.Size(127, 23);
            this.btnCopyTo.TabIndex = 2;
            this.btnCopyTo.Text = "CopyTo()";
            this.btnCopyTo.UseVisualStyleBackColor = true;
            this.btnCopyTo.Click += new System.EventHandler(this.btnCopyTo_Click);
            // 
            // groupBox1
            // 
            this.groupBox1.Controls.Add(this.btnSycRoot);
            this.groupBox1.Controls.Add(this.btnIsSynchronized);
            this.groupBox1.Controls.Add(this.btnCount);
            this.groupBox1.Location = new System.Drawing.Point(162, 29);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new System.Drawing.Size(277, 88);
            this.groupBox1.TabIndex = 3;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "Properties";
            // 
            // btnSycRoot
            // 
            this.btnSycRoot.Location = new System.Drawing.Point(139, 19);
            this.btnSycRoot.Name = "btnSycRoot";
            this.btnSycRoot.Size = new System.Drawing.Size(127, 23);
            this.btnSycRoot.TabIndex = 4;
            this.btnSycRoot.Text = "SyncRoot";
            this.btnSycRoot.UseVisualStyleBackColor = true;
            this.btnSycRoot.Click += new System.EventHandler(this.btnSycRoot_Click);
            // 
            // btnIsSynchronized
            // 
            this.btnIsSynchronized.Location = new System.Drawing.Point(8, 48);
            this.btnIsSynchronized.Name = "btnIsSynchronized";
            this.btnIsSynchronized.Size = new System.Drawing.Size(127, 23);
            this.btnIsSynchronized.TabIndex = 3;
            this.btnIsSynchronized.Text = "IsSynchronized ";
            this.btnIsSynchronized.UseVisualStyleBackColor = true;
            this.btnIsSynchronized.Click += new System.EventHandler(this.btnIsSynchronized_Click);
            // 
            // btnCount
            // 
            this.btnCount.Location = new System.Drawing.Point(6, 19);
            this.btnCount.Name = "btnCount";
            this.btnCount.Size = new System.Drawing.Size(127, 23);
            this.btnCount.TabIndex = 2;
            this.btnCount.Text = "Count";
            this.btnCount.UseVisualStyleBackColor = true;
            this.btnCount.Click += new System.EventHandler(this.btnCount_Click);
            // 
            // label1
            // 
            this.label1.BackColor = System.Drawing.Color.Transparent;
            this.label1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.label1.Dock = System.Windows.Forms.DockStyle.Top;
            this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label1.Location = new System.Drawing.Point(0, 0);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(572, 23);
            this.label1.TabIndex = 4;
            this.label1.Text = "ICollection Interface";
            // 
            // FrmIcollection
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(572, 343);
            this.Controls.Add(this.label1);
            this.Controls.Add(this.groupBox1);
            this.Controls.Add(this.gbStaticMethods);
            this.Name = "FrmIcollection";
            this.Text = "ICollection";
            this.gbStaticMethods.ResumeLayout(false);
            this.groupBox1.ResumeLayout(false);
            this.ResumeLayout(false);

        }

        #endregion

        private System.Windows.Forms.GroupBox gbStaticMethods;
        private System.Windows.Forms.Button btnCopyTo;
        private System.Windows.Forms.GroupBox groupBox1;
        private System.Windows.Forms.Button btnCount;
        private System.Windows.Forms.Button btnIsSynchronized;
        private System.Windows.Forms.Button btnSycRoot;
        private System.Windows.Forms.Label label1;
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Chief Technology Officer
Pakistan Pakistan
Passion and positive dedication is essential part of success. I believe on hardworking and sharing knowledge with others. I always try to be a better than I am and think positive for positive result.

My Blogs

My Linked-In Profile

Comments and Discussions