This repository was archived by the owner on Aug 18, 2021. It is now read-only.
This repository was archived by the owner on Aug 18, 2021. It is now read-only.
LightDomain isn't inheritable #215
Open
Description
LightDomain
uses a trick to restrict inheritance:
This means that users of our code can't direct inherit this class. No matter right? Maybe they should implement ILightDomain
, and use that instead...
They can't, because the frameworks requires instances of LightDomain
. In fact, a quick search show us that the only usage of ILightDomain
is FactoryDomain
:
But one can clearly see that the cast could be safely dropped (T is restricted to be LightDomain which is ILightDomain
).