From 4fab0ddf501148a9a4e080fd69e15bd238bc2ae8 Mon Sep 17 00:00:00 2001 From: Atsushi Eno Date: Mon, 20 Apr 2015 20:38:39 +0900 Subject: [PATCH] [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. --- .../SyndicationElementExtensionCollection.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mcs/class/System.ServiceModel.Web/System.ServiceModel.Syndication/SyndicationElementExtensionCollection.cs b/mcs/class/System.ServiceModel.Web/System.ServiceModel.Syndication/SyndicationElementExtensionCollection.cs index c9a78ea3420..00e44579760 100644 --- a/mcs/class/System.ServiceModel.Web/System.ServiceModel.Syndication/SyndicationElementExtensionCollection.cs +++ b/mcs/class/System.ServiceModel.Web/System.ServiceModel.Syndication/SyndicationElementExtensionCollection.cs @@ -80,7 +80,7 @@ namespace System.ServiceModel.Syndication Add (new SyndicationElementExtension (xmlReader)); } - new void Add (SyndicationElementExtension item) + internal new void Add (SyndicationElementExtension item) { base.Add (item); } -- 2.25.1