Generic.List

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?
 

Avtor: o-MA-n-tjaz, objavljeno na portalu SloDug.si (Arhiv)

Leave a comment

Please note that we won't show your email to others, or use it for sending unwanted emails. We will only use it to render your Gravatar image and to validate you as a real person.