1
Reply

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

Dhanik Sahni

Dhanik Sahni

Oct 13, 2015
1.1k
0

    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;

    Dhanik Sahni
    October 13, 2015
    0