diff options
author | Marek Safar <marek.safar@gmail.com> | 2014-12-04 17:16:31 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2014-12-04 17:16:31 +0300 |
commit | a1aced8ab22c1dabd25542fe808459f332039ee9 (patch) | |
tree | edc815c58e3da7337a937cc454546af09b9530d7 /mcs/class/System.ComponentModel.Composition/Tests/ComponentModelUnitTest/System/ComponentModel/Composition/Factories/CatalogFactory.DisposableComposablePartCatalog.cs | |
parent | 336755ca9edfbb0dd5c395f59a398c76449f7fdc (diff) |
Remove 4.0 profile
Diffstat (limited to 'mcs/class/System.ComponentModel.Composition/Tests/ComponentModelUnitTest/System/ComponentModel/Composition/Factories/CatalogFactory.DisposableComposablePartCatalog.cs')
-rw-r--r-- | mcs/class/System.ComponentModel.Composition/Tests/ComponentModelUnitTest/System/ComponentModel/Composition/Factories/CatalogFactory.DisposableComposablePartCatalog.cs | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/mcs/class/System.ComponentModel.Composition/Tests/ComponentModelUnitTest/System/ComponentModel/Composition/Factories/CatalogFactory.DisposableComposablePartCatalog.cs b/mcs/class/System.ComponentModel.Composition/Tests/ComponentModelUnitTest/System/ComponentModel/Composition/Factories/CatalogFactory.DisposableComposablePartCatalog.cs deleted file mode 100644 index 9adf55c7236..00000000000 --- a/mcs/class/System.ComponentModel.Composition/Tests/ComponentModelUnitTest/System/ComponentModel/Composition/Factories/CatalogFactory.DisposableComposablePartCatalog.cs +++ /dev/null @@ -1,45 +0,0 @@ -// -----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// -----------------------------------------------------------------------
-using System;
-using System.Collections.Generic;
-using System.ComponentModel.Composition.Primitives;
-using System.Linq;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
-
-namespace System.ComponentModel.Composition.Factories
-{
- partial class CatalogFactory
- {
- // NOTE: Do not add any more behavior to this class, as ComposablePartCatalogTests.cs
- // uses this to verify default behavior of the base class.
- private class DisposableComposablePartCatalog : ComposablePartCatalog
- {
- private readonly Action<bool> _disposeCallback;
-
- public DisposableComposablePartCatalog(Action<bool> disposeCallback)
- {
- Assert.IsNotNull(disposeCallback);
-
- _disposeCallback = disposeCallback;
- }
-
- ~DisposableComposablePartCatalog()
- {
- Dispose(false);
- }
-
- public override IQueryable<ComposablePartDefinition> Parts
- {
- get { throw new NotImplementedException(); }
- }
-
- protected override void Dispose(bool disposing)
- {
- _disposeCallback(disposing);
-
- base.Dispose(disposing);
- }
- }
- }
-}
\ No newline at end of file |