Fix null sessions in HttpContextWrapper.Session
[mono.git] / mcs / class / IKVM.Reflection / Emit / CustomAttributeBuilder.cs
index 05715785d51a95cacd54513de91daa34878bd057..12be4a466d4ff0dc94d31276478c638e16f74c83 100644 (file)
@@ -351,7 +351,7 @@ namespace IKVM.Reflection.Emit
                                        GetTypeNameImpl(sb, type.GetElementType());
                                        sb.Append(((ElementHolderType)type).GetSuffix());
                                }
-                               else if (type.IsGenericTypeInstance)
+                               else if (type.IsConstructedGenericType)
                                {
                                        sb.Append(type.GetGenericTypeDefinition().FullName);
                                        sb.Append('[');