Thanks Gert!
Ok Miguel, I will do so next time.
I have real and open source code using that feature at
http://svn.berlios.de/svnroot/repos/boxerp/trunk/src/client-lib/
It could be useful as it has unit tests that fails on Mono.
Cheers
2007/7/20, Miguel de Icaza <[EMAIL PROTECTED]>:
hello Carlos,
Please post full samples. Every time you post half the information
you are forcing the developers to actually spend time reconstructing
your test case.
Miguel.
>
> public
>
> static void Main(string [] args)
>
> {
>
> Console.WriteLine("Hello World!");
>
> TestClass<int> test = new TestClass<int>();
>
> RuntimeMethodHandle methodHandle =
> test.GetType().GetProperty("MyList").GetGetMethod().MethodHandle;
>
> MethodBase methodBase = MethodInfo.GetMethodFromHandle(methodHandle,
> typeof(TestClass<int>).TypeHandle);
>
> List<int> list = (List< int>)methodBase.Invoke(test, null);
>
> Console.WriteLine(list.Count);
>
> }
>
>
_______________________________________________
Mono-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list