1
// -----------------------------------------------------------------------
2 // Copyright (c) Microsoft Corporation. All rights reserved.
3 // -----------------------------------------------------------------------
8 namespace System
.ComponentModel
.Composition
10 public sealed class PartLifetimeContext
<T
> : IDisposable
12 private readonly T _exportedValue
;
13 private readonly Action _dispose
;
15 public PartLifetimeContext(T exportedValue
, Action dispose
)
17 this._exportedValue
= exportedValue
;
18 this._dispose
= dispose
;
21 public T ExportedValue
23 get { return this._exportedValue; }