Class ExportAdapter<T>
A handle allowing the graph of parts associated with an exported instance to be released.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Kephas.Composition.Mef
Assembly: Kephas.Composition.Mef.dll
Syntax
public class ExportAdapter<T> : IExport<T>, IExport, IDisposable
Type Parameters
Name | Description |
---|---|
T | The export type. |
Constructors
| Improve this Doc View SourceExportAdapter(Export<T>)
Initializes a new instance of the ExportAdapter<T> class.
Declaration
protected ExportAdapter(Export<T> innerExport)
Parameters
Type | Name | Description |
---|---|---|
System.Composition.Export<T> | innerExport | The inner export. |
Properties
| Improve this Doc View SourceValue
Gets the exported value.
Declaration
public T Value { get; }
Property Value
Type | Description |
---|---|
T |
Methods
| Improve this Doc View SourceDispose()
Release the parts associated with the exported value.
Declaration
public void Dispose()
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A string that represents the current object. |
Overrides
System.Object.ToString()
Explicit Interface Implementations
| Improve this Doc View SourceIExport.Value
Gets the exported value.
Declaration
object IExport.Value { get; }
Returns
Type | Description |
---|---|
System.Object | The exported value. |
Implements
System.IDisposable