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/ImportDefinitionFactory.DerivedImportDefinition.cs | |
parent | 336755ca9edfbb0dd5c395f59a398c76449f7fdc (diff) |
Remove 4.0 profile
Diffstat (limited to 'mcs/class/System.ComponentModel.Composition/Tests/ComponentModelUnitTest/System/ComponentModel/Composition/Factories/ImportDefinitionFactory.DerivedImportDefinition.cs')
-rw-r--r-- | mcs/class/System.ComponentModel.Composition/Tests/ComponentModelUnitTest/System/ComponentModel/Composition/Factories/ImportDefinitionFactory.DerivedImportDefinition.cs | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/mcs/class/System.ComponentModel.Composition/Tests/ComponentModelUnitTest/System/ComponentModel/Composition/Factories/ImportDefinitionFactory.DerivedImportDefinition.cs b/mcs/class/System.ComponentModel.Composition/Tests/ComponentModelUnitTest/System/ComponentModel/Composition/Factories/ImportDefinitionFactory.DerivedImportDefinition.cs deleted file mode 100644 index dbe2fb2a619..00000000000 --- a/mcs/class/System.ComponentModel.Composition/Tests/ComponentModelUnitTest/System/ComponentModel/Composition/Factories/ImportDefinitionFactory.DerivedImportDefinition.cs +++ /dev/null @@ -1,50 +0,0 @@ -// -----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// -----------------------------------------------------------------------
-using System;
-using System.ComponentModel.Composition;
-using System.Collections.Generic;
-using System.Linq.Expressions;
-using System.ComponentModel.Composition.Primitives;
-
-namespace System.ComponentModel.Composition.Factories
-{
- partial class ImportDefinitionFactory
- {
- private class DerivedImportDefinition : ImportDefinition
- {
- private readonly Expression<Func<ExportDefinition, bool>> _constraint;
- private readonly ImportCardinality _cardinality;
- private readonly bool _isRecomposable;
- private readonly bool _isPrerequisite;
-
- public DerivedImportDefinition(Expression<Func<ExportDefinition, bool>> constraint, ImportCardinality cardinality, bool isRecomposable, bool isPrerequisite)
- {
- _constraint = constraint ?? (export => false);
- _cardinality = cardinality;
- _isRecomposable = isRecomposable;
- _isPrerequisite = isPrerequisite;
- }
-
- public override ImportCardinality Cardinality
- {
- get { return _cardinality; }
- }
-
- public override bool IsPrerequisite
- {
- get { return _isPrerequisite; }
- }
-
- public override bool IsRecomposable
- {
- get { return _isRecomposable; }
- }
-
- public override Expression<Func<ExportDefinition, bool>> Constraint
- {
- get { return _constraint; }
- }
- }
- }
-}
|