Skip to content

Commit fc115aa

Browse files
committed
update
1 parent 427f5de commit fc115aa

1 file changed

Lines changed: 1 addition & 13 deletions

File tree

mdoc/Mono.Documentation/MDocUpdater.cs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4166,19 +4166,7 @@ private void MakeTypeParameters (FrameworkTypeEntry entry, XmlElement root, ILis
41664166
xElement.RemoveAttribute(Consts.FrameworkAlternate);
41674167
xElement.SetAttribute(Consts.FrameworkAlternate, fxaValue);
41684168
MakeParamsAttributes(existing.Element, AttributeFormatter.PreProcessCustomAttributes(t.CustomAttributes), entry, member);
4169-
4170-
var constraintsElement = xElement.SelectSingleNode("Constraints") as XmlElement;
4171-
if (constraintsElement == null && ((attrs & (GenericParameterAttributes)0x0020) != 0))
4172-
{
4173-
MakeTypeParameterConstraints(root, e, xElement, t);
4174-
}
4175-
else if (constraintsElement != null && ((attrs & (GenericParameterAttributes)0x0020) != 0)
4176-
&& !constraintsElement.SelectNodes("ParameterAttribute").Cast<XmlElement>().Any(el => el.InnerText == "AllowByRefLike"))
4177-
{
4178-
var parameterAttribute = constraintsElement.OwnerDocument.CreateElement("ParameterAttribute");
4179-
parameterAttribute.InnerText = "AllowByRefLike";
4180-
constraintsElement.AppendChild(parameterAttribute);
4181-
}
4169+
MakeTypeParameterConstraints(root, xElement, xElement, t);
41824170
}
41834171
else
41844172
{

0 commit comments

Comments
 (0)