Clear() публичный Метод

public Clear ( ) : void
Результат void
Пример #1
0
 private static void CleanCollection(CollectionBase collection)
 {
     collection.Clear();
       IDisposable disposable = collection as IDisposable;
       if (disposable != null)
     disposable.Dispose();
 }
Пример #2
0
        private static void ClearStrictCollectionAndDisposesItCommon(MockRepository mocks, CollectionBase collection)
        {
            collection.Clear();
            ((IDisposable)collection).Dispose();

            mocks.ReplayAll();
            CleanCollection(collection);
            mocks.VerifyAll();
        }