DISABILITARE ADBLOCK

ADBlock sta bloccando alcuni contenuti del sito

ADBlock errore

Providing Inherited Static Properties (conceptually)

FONTE PRINCIPALE: https://stackoverflow.com/questions/422246

DOMANDA COMPLETA

SOLUZIONE

If you want to absolutely dictate that the child implement this, then the only way I see doing it is making the base class abstract, and expose instance properties to return the icon and friendly name.

These would be abstract, not virtual, so you force the implementation by the derived class. I know it's not clean, in that it is information that is better stored on the type level, but it's the only way I can see to enforce this requirement at compile-time.

NON SEI SODDISFATTO ???

FONTI UTILI

StackOverflow