Visual Studio Code – Explicit Cast From Type to Not Implemented Interface Compiles but Fails in Runtime
I have a class and an interface as follows: internal class DoStuff { public int X { get; } public void Do() => WriteLine(X); public DoStuff(int X) => this.X = X; } internal interface IDoStuff { void Do(); } The…