is it possible to somehow count the subclasses of ...
# announcements
i
is it possible to somehow count the subclasses of a sealed class at runtime?
r
why do you need this?
i
@rrader because I use sealed classes to model cell types in a list view (android) and there's a method where I have to return the number of cell types. I have to hardcode this. And thought that maybe just counting the subclasses helps. Not really convinced of this approach, though, for the most part just curious