System.CodeDom.CodeNamespaceImportCollection.Clear C# (CSharp) Method

Clear() public method

public Clear ( ) : void
return void
        public void Clear() {
            data.Clear();
            keys.Clear();
        }

Usage Example

		public void Constructor0_Deny_Unrestricted ()
		{
			CodeNamespaceImportCollection coll = new CodeNamespaceImportCollection ();
			coll.Add (cni);
			Assert.AreSame (cni, coll[0], "this[int]");
			coll[0] = cni;
			coll.Clear ();
			coll.AddRange (array);
			Assert.IsNotNull (coll.GetEnumerator (), "GetEnumerator");
		}