Assert.IsFalse (ptr.IsGenericType, "#9");
Assert.IsFalse (ptr.IsGenericTypeDefinition, "#10");
+#if NET_4_0
+ Assert.AreEqual (TypeAttributes.Public, ptr.Attributes, "#11");
+#else
try {
- var x = ptr.Attributes;
+ var x = ptr.Attributes; //This is because GenericTypeParameterBuilder doesn't support Attributes
Assert.Fail ("#11");
} catch (NotSupportedException) {}
+#endif
Assert.IsTrue (ptr.HasElementType, "#12");
Assert.IsTrue (ptr.IsPointer, "#13");
Assert.IsFalse (byref.IsGenericType, "#9");
Assert.IsFalse (byref.IsGenericTypeDefinition, "#10");
+
+#if NET_4_0
+ Assert.AreEqual (TypeAttributes.Public, byref.Attributes, "#11");
+#else
try {
- var x = byref.Attributes;
+ var x = byref.Attributes; //This is because GenericTypeParameterBuilder doesn't support Attributes
Assert.Fail ("#11");
} catch (NotSupportedException) {}
+#endif
Assert.IsTrue (byref.HasElementType, "#12");
Assert.IsTrue (byref.IsByRef, "#13");
Assert.IsFalse (arr.IsGenericType, "#9");
Assert.IsFalse (arr.IsGenericTypeDefinition, "#10");
+#if NET_4_0
+ Assert.AreEqual (TypeAttributes.Public, arr.Attributes, "#11");
+#else
try {
var x = arr.Attributes; //This is because GenericTypeParameterBuilder doesn't support Attributes
Assert.Fail ("#11");
} catch (NotSupportedException) {}
+#endif
Assert.IsTrue (arr.HasElementType, "#12");
Assert.IsTrue (arr.IsArray, "#13");