returned when GetCustomAttributes was invoked with null
attribute type and there was only one result
svn path=/trunk/mcs/; revision=28916
+2004-06-06 Gert Driesen <drieseng@users.sourceforge.net>
+
+ * MonoCustomAttrs.cs: fixed issue where an empty array was
+ returned when GetCustomAttributes was invoked with null
+ attribute type and there was only one result
+
2004-06-06 Sebastien Pouliot <sebastien@ximian.com>
* Decimal.cs: Fixed ToString(String.Empty) to default ("G").
}
else
{
- r = (object[]) Array.CreateInstance (res[0].GetType (), 0);
-
+ r = (object[]) Array.CreateInstance (res[0].GetType (), 1);\r
+ r[0] = res[0];\r
}
return r;
}