2 using System.Reflection;
6 const int count = 10000;
9 for (i = 0; i < count; ++i) {
17 static unsafe int run () {
18 char[] val = new char[] {'h', 'e', 'l', 'l', 'o'};
21 a = (string)Activator.CreateInstance (typeof (string), new object[] {'a', 5});
25 a = (string)Activator.CreateInstance (typeof (string), new object[] {val});
29 a = (string)Activator.CreateInstance (typeof (string), new object[] {val, 0, 3});
34 * The other ctors use pointers: maybe something like this is supposed to work some day.
35 fixed (char *c = val) {
36 a = (string)Activator.CreateInstance (typeof (string), new object[] {Pointer.Box (c, typeof (char*))});