1
Reply

Q. What is purpose of marker interface ? Do we really need in c# ?

Dhanik Sahni

Dhanik Sahni

9y
1.1k
0
Reply

    Marker interfaces:1. are a bit easier to check for using dynamic type checks (´obj is IMarker´) 2. allow for functional and data extensibility in the future (i.e. turning a “marker” interface into a “full” interface that actually declares some members) 3.can be used in generic type constraints;