Tuesday, February 3, 2015

The call is ambiguous

Got this exception while getting value from a response header.

The call is ambiguous between the following methods or properties: 'System.Net.WebHeaderCollection.this[System.Net.HttpRequestHeader]' and 'System.Net.WebHeaderCollection.this[System.Net.HttpResponseHeader]

Google search told me that it might be due to an issue with C# compiler itself. I got the answer at this SO answer, but that makes my realization of a compiler issue. :). LG.

No comments: