2 references to ContractServices
System.ComponentModel.Composition (2)
System\ComponentModel\Composition\ExportServices.cs (1)
139
bool succeeded =
ContractServices
.TryCast(typeof(T), exportedValue, out object? typedExportedValue);
System\ComponentModel\Composition\ReflectionModel\ImportingItem.cs (1)
96
if (!
ContractServices
.TryCast(type, value, out object? result))