1 // -----------------------------------------------------------------------
\r
2 // Copyright (c) Microsoft Corporation. All rights reserved.
\r
3 // -----------------------------------------------------------------------
\r
5 using System.Diagnostics;
\r
6 using Microsoft.Internal;
\r
8 namespace System.ComponentModel.Composition.Primitives
\r
10 // Represents the ICompositionElement placeholder for an
\r
11 // object that does not implement ICompositionElement
\r
12 [DebuggerTypeProxy(typeof(CompositionElementDebuggerProxy))]
\r
14 internal class CompositionElement : SerializableCompositionElement
\r
16 private static readonly ICompositionElement UnknownOrigin = new SerializableCompositionElement(Strings.CompositionElement_UnknownOrigin, (ICompositionElement)null);
\r
17 private readonly object _underlyingObject;
\r
19 public CompositionElement(object underlyingObject)
\r
20 : base(underlyingObject.ToString(), UnknownOrigin)
\r
22 this._underlyingObject = underlyingObject;
\r
25 public object UnderlyingObject
\r
27 get { return _underlyingObject; }
\r