-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
Pri2Indicates issues/PRs that are medium priorityIndicates issues/PRs that are medium priorityarea-System.Reflectiondotnet-api/prod
Milestone
Description
When type parameter of Type.GetInterfaceMap
method is represented by:
Open generic constructed type - method throwsArgumentException
"interface not found"
which is not mentioned in the docs- Closed generic constructed type - method returns
InterfaceMapping
withInterfaceType
property equal to the specifiedtype
parameter, but not the actual version of implemented generic interface. Generic parameters in the returned type correspond to the specifiedtype
parameter, but not to the actual implemented interface type. So the following remark from the docs is incorrect:
If the current Type represents a constructed generic type, type parameters are replaced by the appropriate type arguments in the elements of the InterfaceMapping returned by this method.
dotnet core 2.1
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: f037e068-f720-1ece-533e-b71e5de9b393
- Version Independent ID: 9e8ef13d-1ff6-b78e-494a-57227e2225a4
- Content: Type.GetInterfaceMap(Type) Method (System)
- Content Source: xml/System/Type.xml
- Product: dotnet-api
- GitHub Login: @dotnet-bot
- Microsoft Alias: dotnetcontent
Metadata
Metadata
Assignees
Labels
Pri2Indicates issues/PRs that are medium priorityIndicates issues/PRs that are medium priorityarea-System.Reflectiondotnet-api/prod