Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAtsushi Eno <atsushieno@gmail.com>2015-01-30 19:43:23 +0300
committerAtsushi Eno <atsushieno@gmail.com>2015-02-20 22:24:12 +0300
commit358275e8365d3204a49256393bf829088fcee723 (patch)
tree53137b72fbc366db5ec5610b49dd14be365a1a50
parenta0dece23297d5bf02007e211da13021fbf3a5cf0 (diff)
[WCF] Do not expect XmlElement.FirstChild is non-whitespace here.
Fix several regressions caused by referencesource Sys.Xml import.
-rw-r--r--mcs/class/System.ServiceModel/System.ServiceModel.Description/CustomPolicyConversionContext.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/mcs/class/System.ServiceModel/System.ServiceModel.Description/CustomPolicyConversionContext.cs b/mcs/class/System.ServiceModel/System.ServiceModel.Description/CustomPolicyConversionContext.cs
index 1e40ee7d49c..2876a0465d9 100644
--- a/mcs/class/System.ServiceModel/System.ServiceModel.Description/CustomPolicyConversionContext.cs
+++ b/mcs/class/System.ServiceModel/System.ServiceModel.Description/CustomPolicyConversionContext.cs
@@ -96,7 +96,7 @@ namespace System.ServiceModel.Description {
*
*/
- var exactlyOne = element.FirstChild as XmlElement;
+ var exactlyOne = element.SelectSingleNode ("*") as XmlElement;
if (exactlyOne == null) {
// OOPS
return;