best use collection general classes


consider following code:



abstract category someclassx<t>
{
// blah
}

class someclassy: someclassx<int>
{
// blah
}

class someclassz: someclassx<long>
{
// blah
}


i wish collection someclassx<t>'s, however, isn't illusory given someclassx<int> != someclassx<long> list<someclassx<>> isn't allowed.



so fortitude have someclassx<t> exercise an interface interpretation collection as, where isomeclassx interface:



class collectionofsomeclassx: list<isomeclassx>
{
// blah
}


is best proceed this, there improved way?



Comments

Popular posts from this blog

list macos calm editors formula editors

how i practical urls indicate .aspx pages asp.net deployed an iis? (preferably but iis)

jaxb - xjc - reworking generated typesafe enum category members