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

ElementFactory.CompositionElement.cs « Factories « Composition « ComponentModel « System « ComponentModelUnitTest « Tests « System.ComponentModel.Composition « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 71f89073361ff2179b2c0562e2b8040192b9d064 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// -----------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.  All rights reserved.
// -----------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.ComponentModel.Composition.Hosting;
using System.ComponentModel.Composition.Primitives;

namespace System.ComponentModel.Composition.Factories
{
    partial class ElementFactory
    {
        private class CompositionElement : ICompositionElement
        {
            private readonly string _displayName;
            private readonly ICompositionElement _origin;

            public CompositionElement(string displayName, ICompositionElement origin)
            {
                _displayName = displayName;
                _origin = origin;
            }

            public string DisplayName
            {
                get { return _displayName; }
            }

            public ICompositionElement Origin
            {
                get { return _origin; }
            }
        }
    }
}