aren't there any improved ways displaying an vigilant controlling hierarchy?


i have category hierarchy such:



        +-- virtualnode
|
inode --+ +-- sitenode
| |
+-- abstractnode --+
|
+-- sitesubnode


and analogous nodecollection category build inode. method arrangement nodecollection i need know final form any member. i need duty this



foreach (inode n mynodecollection)
{
switch(n.gettype())
{
case(typeof(sitenode)):
// arrangement n sitenode
}
}


now, unequivocally an vigilant oriented proceed doing it. are there any patterns permitted ways doing same thing, your opinion?



edit

i already guess adding display render slight inode interface. side outcome coupling perspective model, i unequivocally avoid.



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?