Jun 25, 2013, 4:39 PM
[CLOSED] Cannot convert from 'Ext.Net.Label' to 'Ext.Net.Component'
In a 1.X version of a project I had some code where I create two lists of components:
For example:
"Cannot convert from 'Ext.Net.Label' to 'Ext.Net.Component'"
Is there a different type other than Component that I could use to still be able to do something like this?
List<Component> leftComponents = new List<Component>();
List<Component> rightComponents = new List<Component>();
Then I go through and add various components to these lists. For example:
leftComponents.Add(new Label(setting.name));
leftComponents.Add(new TextField(tconfig));
After converting to 2.2, I am getting the following error when trying to add these to the lists:"Cannot convert from 'Ext.Net.Label' to 'Ext.Net.Component'"
Is there a different type other than Component that I could use to still be able to do something like this?
Last edited by Baidaly; Jul 02, 2013 at 12:01 AM.
Reason: [CLOSED]