diff --git a/Data/CecilExtensions.cs b/Data/CecilExtensions.cs index b89d339..01f81b2 100644 --- a/Data/CecilExtensions.cs +++ b/Data/CecilExtensions.cs @@ -356,21 +356,21 @@ private static void WriteGenericConstraintsHtml (Collection ge w.Write (" : "); var head = ""; foreach (var c in p.Constraints) { - if (c.FullName == "System.Object") { + if (c.ConstraintType.FullName == "System.Object") { w.Write ("class"); head = ", "; break; } - else if (c.FullName == "System.ValueType") { + else if (c.ConstraintType.FullName == "System.ValueType") { w.Write ("struct"); head = ", "; break; } } foreach (var c in p.Constraints) { - if (c.FullName != "System.ValueType" && c.FullName != "System.Object") { + if (c.ConstraintType.FullName != "System.ValueType" && c.ConstraintType.FullName != "System.Object") { w.Write (head); - WriteReferenceHtml (c, w, framework); + WriteReferenceHtml (c.ConstraintType, w, framework); head = ", "; } } diff --git a/FuGetGallery.csproj b/FuGetGallery.csproj index 9ff1690..12d1fdf 100644 --- a/FuGetGallery.csproj +++ b/FuGetGallery.csproj @@ -5,7 +5,7 @@ - +