[Mono-dev] MonoProperty and generic types

Robert Jordan robertj at gmx.net
Tue Jul 23 11:57:15 UTC 2013


Hi,

On 23.07.2013 13:27, Bartosz Przygoda wrote:
> Hello,
>
> I'm obtaining the *Capacity *property from the *List<T>* class:
>
>      class_ = mono_class_from_name(image, "System.Collections.Generic",
> "List`1");
>      _Capacity = mono_class_get_property_from_name(list, "Capacity");


This isn't supported. Only constructed generic classes (e.g. List<int>)
are fully accessible by the embedded API.

Robert



More information about the Mono-devel-list mailing list