[WCF] fix syndication extension Add() resolution by appropriate accessibility.
authorAtsushi Eno <atsushieno@gmail.com>
Mon, 20 Apr 2015 11:38:39 +0000 (20:38 +0900)
committerAtsushi Eno <atsushieno@gmail.com>
Fri, 24 Apr 2015 05:36:59 +0000 (14:36 +0900)
commit4fab0ddf501148a9a4e080fd69e15bd238bc2ae8
tree36fbed6cf1057524a655a327d84a8a230b529e66
parent365abf5ee5d2bce1a09adcfb88fa14ac6a32c61e
[WCF] fix syndication extension Add() resolution by appropriate accessibility.

I wonder why, but when switched to referencesource, it turned out that
ResourceCollectionInfo calls SyndicationElementExtensionCollection.Add()
which targets a private overload, but (of course) failed and resolved to
another overload that takes object, and thus resulting in invalid code path.

With this fix the call to Add() resolves to the expected one and does not
regress with referencesource import.
mcs/class/System.ServiceModel.Web/System.ServiceModel.Syndication/SyndicationElementExtensionCollection.cs