Interviews1 answer
Q. What is purpose of marker interface ? Do we really need in c# ?
1 Answer
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 SahniPosted Oct 12, 2015, 10:51 PM EDT
