Napisal sem svojo asp.net kontrolo, ki ima property
[MergablePropertyAttribute(false),
Editor(typeof(MyEditor), typeof(System.Drawing.Design.UITypeEditor)),
PersistenceMode(PersistenceMode.InnerProperty)]
public List<Item> Items
{
get
{
return m_Item
}
}
Ko v design-time kliknem na property se ne odpre Editor forma (MyEditor) ampak mi javi napako:
Unable to cast object of 'System.Collections.Generic.List`1 [...]' to type 'System.Collections.Generic.List`1 [...]'.
Če zaprem Visual Studio in ga ponovno odprem se ob kliku na property normalno odpre Editor forma (MyEditor).
Morda, kdo poza ta problem?