10 references to ChangeType
System.Composition.Hosting (7)
System\Composition\Hosting\Providers\ExportFactory\ExportFactoryExportDescriptorProvider.cs (2)
28
var productContract = exportFactoryContract.
ChangeType
(typeof(TProduct));
35
productContract = unwrapped.
ChangeType
(typeof(TProduct));
System\Composition\Hosting\Providers\ExportFactory\ExportFactoryWithMetadataExportDescriptorProvider.cs (2)
31
var productContract = exportFactoryContract.
ChangeType
(typeof(TProduct));
38
productContract = unwrapped.
ChangeType
(typeof(TProduct));
System\Composition\Hosting\Providers\ImportMany\ImportManyExportDescriptorProvider.cs (1)
32
var elementContract = unwrapped.
ChangeType
(elementType);
System\Composition\Hosting\Providers\Lazy\LazyExportDescriptorProvider.cs (1)
29
return definitionAccessor.ResolveDependencies("value", lazyContract.
ChangeType
(typeof(TValue)), false)
System\Composition\Hosting\Providers\Lazy\LazyWithMetadataExportDescriptorProvider.cs (1)
32
return definitionAccessor.ResolveDependencies("value", lazyContract.
ChangeType
(typeof(TValue)), false)
System.Composition.TypedParts (3)
System\Composition\TypedParts\Discovery\DiscoveredInstanceExport.cs (1)
25
var newContract = Contract.
ChangeType
(closedContractType);
System\Composition\TypedParts\Discovery\DiscoveredPropertyExport.cs (1)
39
var newContract = Contract.
ChangeType
(closedContractType);
System\Composition\TypedParts\TypedPartExportDescriptorProvider.cs (1)
110
var openGenericContract = contract.
ChangeType
(gtd);