Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
Fix the issues in extension method. (#19846)
Browse files Browse the repository at this point in the history
  • Loading branch information
huanwu committed May 16, 2017
1 parent d2a2d7c commit 5a778be
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -19,7 +19,7 @@ internal static bool GetNamespaceSpecified(this XmlAnyElementAttribute xmlAnyEle
{
if(s_NamespaceSpecifiedPropertyInfo == null)
{
s_NamespaceSpecifiedPropertyInfo = typeof(XmlAnyElementAttribute).GetType().GetProperty("NamespaceSpecified", BindingFlags.NonPublic | BindingFlags.Instance);
s_NamespaceSpecifiedPropertyInfo = typeof(XmlAnyElementAttribute).GetProperty("NamespaceSpecified", BindingFlags.NonPublic | BindingFlags.Instance);
}

return (bool)s_NamespaceSpecifiedPropertyInfo.GetValue(xmlAnyElementAtt);
Expand Down
Expand Up @@ -19,7 +19,7 @@ internal static bool GetIsNullableSpecified(this XmlArrayItemAttribute xmlArrayI
{
if(s_IsNullableSpecifiedPropertyInfo == null)
{
s_IsNullableSpecifiedPropertyInfo= typeof(XmlArrayItemAttribute).GetType().GetProperty("IsNullableSpecified", BindingFlags.NonPublic | BindingFlags.Instance);
s_IsNullableSpecifiedPropertyInfo= typeof(XmlArrayItemAttribute).GetProperty("IsNullableSpecified", BindingFlags.NonPublic | BindingFlags.Instance);
}

return (bool)s_IsNullableSpecifiedPropertyInfo.GetValue(xmlArrayItemAtt);
Expand Down
Expand Up @@ -20,7 +20,7 @@ internal static bool GetIsNullableSpecified(this XmlElementAttribute xmlElementA
{
if(s_IsNullableSpecifiedPropertyInfo == null)
{
s_IsNullableSpecifiedPropertyInfo = typeof(XmlElementAttribute).GetType().GetProperty("IsNullableSpecified", BindingFlags.NonPublic | BindingFlags.Instance);
s_IsNullableSpecifiedPropertyInfo = typeof(XmlElementAttribute).GetProperty("IsNullableSpecified", BindingFlags.NonPublic | BindingFlags.Instance);
}

return (bool)s_IsNullableSpecifiedPropertyInfo.GetValue(xmlElementAtt);
Expand Down

0 comments on commit 5a778be

Please sign in to comment.