INode.Edges must be read-only. You cannot add or delete Edges from casted to down-level INode.
Currently your INode.Edges is IList which allows to add and remove nodes.
Solution
Create your own ImmutableCollection for list that also allows casting from inherited to base classes.
Problem
INode.Edges
must be read-only. You cannot add or deleteEdges
from casted to down-levelINode
. Currently yourINode.Edges
isIList
which allows to add and remove nodes.Solution
Create your own
ImmutableCollection
for list that also allows casting from inherited to base classes.