O 
		
								
				
				
			
		Oriane
Hi there
The following code doesn't complie:
________________________________________________________
public interface ITree
{
ITree GetFather ();
List<ITree> GetChildren();
}
public class A : ITree
{
protected A m_father;
protected List<A> m_ListChildren;
public ITree GetFather() { return m_father; }
public List<ITree> GetChildren() { return m_ListChildren; }
}
________________________________________________________
since "Error 2 Cannot implicitly convert type
'System.Collections.Generic.List<XMLTreeview.A>' to
'System.Collections.Generic.List<XMLTreeview.ITree>'
However A inherits from ITree, so the cast should be working no...
Is there any workaround ?
Oriane
				
			The following code doesn't complie:
________________________________________________________
public interface ITree
{
ITree GetFather ();
List<ITree> GetChildren();
}
public class A : ITree
{
protected A m_father;
protected List<A> m_ListChildren;
public ITree GetFather() { return m_father; }
public List<ITree> GetChildren() { return m_ListChildren; }
}
________________________________________________________
since "Error 2 Cannot implicitly convert type
'System.Collections.Generic.List<XMLTreeview.A>' to
'System.Collections.Generic.List<XMLTreeview.ITree>'
However A inherits from ITree, so the cast should be working no...
Is there any workaround ?
Oriane
 
	