Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Commented Issue: Complex Types with TypeConverters are not resolved properly [354]

$
0
0
Complex types with type converters are not resolved properly when evaluating matches. The following works:

void Get() {...}

void Get(int id) {...}

However if I change the second method to use a complex type with a type converter:

void Get() {...}

void Get(ObjectId id) {...}

then the server gives the following error:

"ExceptionMessage":"Multiple actions were found that match the request"

If I change the controller to only expose:

void Get(ObjectId id) {...}

then the type converter is correctly invoked.
Comments: We need to address scenario like this.

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>