¡@

Home 

c# Programming Glossary: inheritedb

how to improve this method using polymorphism+overloading so as to reduce IS (type check)?

http://stackoverflow.com/questions/9892660/how-to-improve-this-method-using-polymorphismoverloading-so-as-to-reduce-is-ty

is InheritedA return 1 else if this is InheritedA next is InheritedB return 2 else if this is InheritedB next is InheritedA return.. is InheritedA next is InheritedB return 2 else if this is InheritedB next is InheritedA return 3 else if this is InheritedB next.. is InheritedB next is InheritedA return 3 else if this is InheritedB next is InheritedB return 4 where InheritedA and InheritedB..