Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/System.ComponentModel.Composition/Tests/ComponentModelUnitTest/System/ComponentModel/Composition/MicroExport.cs')
-rw-r--r--mcs/class/System.ComponentModel.Composition/Tests/ComponentModelUnitTest/System/ComponentModel/Composition/MicroExport.cs79
1 files changed, 0 insertions, 79 deletions
diff --git a/mcs/class/System.ComponentModel.Composition/Tests/ComponentModelUnitTest/System/ComponentModel/Composition/MicroExport.cs b/mcs/class/System.ComponentModel.Composition/Tests/ComponentModelUnitTest/System/ComponentModel/Composition/MicroExport.cs
deleted file mode 100644
index 3303f4d2ca7..00000000000
--- a/mcs/class/System.ComponentModel.Composition/Tests/ComponentModelUnitTest/System/ComponentModel/Composition/MicroExport.cs
+++ /dev/null
@@ -1,79 +0,0 @@
-// -----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// -----------------------------------------------------------------------
-using System;
-using System.Collections.Generic;
-using System.ComponentModel.Composition;
-using System.ComponentModel.Composition.Hosting;
-
-namespace System.ComponentModel.Composition
-{
- internal class MicroExport
- {
- public MicroExport(Type contractType, params object[] exportedValues)
- : this(AttributedModelServices.GetContractName(contractType), contractType, (IDictionary<string, object>)null, exportedValues)
- {
- }
-
- public MicroExport(string contractName, params object[] exportedValues)
- : this(contractName, exportedValues[0].GetType(), (IDictionary<string, object>)null, exportedValues)
- {
- }
-
- public MicroExport(Type contractType, IDictionary<string, object> metadata, params object[] exportedValues)
- : this(AttributedModelServices.GetContractName(contractType), exportedValues[0].GetType(), metadata, exportedValues)
- {
- }
-
- public MicroExport(string contractName, Type contractType, params object[] exportedValues)
- : this(contractName, contractType, (IDictionary<string, object>)null, exportedValues)
- {
- }
-
- public MicroExport(string contractName, IDictionary<string, object> metadata, params object[] exportedValues)
- : this(contractName, exportedValues[0].GetType(), metadata, exportedValues)
- {
- }
-
- public MicroExport(string contractName, Type contractType, IDictionary<string, object> metadata, params object[] exportedValues)
- {
- this.ContractName = contractName;
- this.ExportedValues = exportedValues;
-
- if (contractType != null)
- {
- string typeIdentity = AttributedModelServices.GetTypeIdentity(contractType);
-
- if (metadata == null)
- {
- metadata = new Dictionary<string, object>();
- }
-
- object val;
- if (!metadata.TryGetValue(CompositionConstants.ExportTypeIdentityMetadataName, out val))
- {
- metadata.Add(CompositionConstants.ExportTypeIdentityMetadataName, AttributedModelServices.GetTypeIdentity(contractType));
- }
- }
- this.Metadata = metadata;
- }
-
- public string ContractName
- {
- get;
- private set;
- }
-
- public object[] ExportedValues
- {
- get;
- private set;
- }
-
- public IDictionary<string, object> Metadata
- {
- get;
- private set;
- }
- }
-} \ No newline at end of file