Casting and templates...
am 31.10.2007 18:09:40 von OrianeHi there
The following code doesn't complie:
________________________________________________________
public interface ITree
{
ITree GetFather ();
List
}
public class A : ITree
{
protected A m_father;
protected List m_ListChildren;
public ITree GetFather() { return m_father; }
public List
}
________________________________________________________
since "Error 2 Cannot implicitly convert type
'System.Collections.Generic.List
'System.Collections.Generic.List
However A inherits from ITree, so the cast should be working no...
Is there any workaround ?
Oriane