Is it possible to permit only some specific classes to implement an iterface?
For Exmaple:
In System.Collections.Generic.Dictionary class has KeyCollection sealed class with implemented System.Collections.Generic.ICollection<TKey> as well System.Collections.ICollection but when I look at code Visual Studio builds from metadata it shows that KeyCollection implements only System.Collections.ICollection interface methods.
How to restrict same?
Simple example: I have used the same interfaces but i have faced the compilation issue.

