Skip to content

Commit 7ed7657

Browse files
committed
update
1 parent 8683a17 commit 7ed7657

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

mdoc/Mono.Documentation/MDocUpdater.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4173,10 +4173,10 @@ private void MakeTypeParameters (FrameworkTypeEntry entry, XmlElement root, ILis
41734173
MakeTypeParameterConstraints(root, e, xElement, t);
41744174
}
41754175
else if (constraintsElement != null && ((attrs & (GenericParameterAttributes)0x0020) != 0)
4176-
&& !constraintsElement.SelectNodes("ParameterAttribute[@Value='AllowByRefLike']").Cast<XmlElement>().Any())
4176+
&& !constraintsElement.SelectNodes("ParameterAttribute").Cast<XmlElement>().Any(el => el.InnerText == "AllowByRefLike"))
41774177
{
41784178
var parameterAttribute = constraintsElement.OwnerDocument.CreateElement("ParameterAttribute");
4179-
parameterAttribute.SetAttribute("Value", "AllowByRefLike");
4179+
parameterAttribute.InnerText = "AllowByRefLike";
41804180
constraintsElement.AppendChild(parameterAttribute);
41814181
}
41824182
}

0 commit comments

Comments
 (0)