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