System.Collections.CollectionBase.Clear C# (CSharp) Method

Clear() public method

public Clear ( ) : void
return void
        public void Clear() { }
        public System.Collections.IEnumerator GetEnumerator() { throw null; }

Usage Example

示例#1
0
 private static void CleanCollection(CollectionBase collection)
 {
     collection.Clear();
       IDisposable disposable = collection as IDisposable;
       if (disposable != null)
     disposable.Dispose();
 }
All Usage Examples Of System.Collections.CollectionBase::Clear