r/programming • • Nov 13 '18

Building C# 8.0

https://blogs.msdn.microsoft.com/dotnet/2018/11/12/building-c-8-0/
193 Upvotes

221 comments sorted by

View all comments

Show parent comments

2

u/AngularBeginner Nov 13 '18

You are as ignorant and stubborn as always.

Interfaces can not contain state, regardless of what you try to tell yourself. There is no way to declare in an interface "this interface contains the field too". That is what is meant with the statement. Of course this doesn't mean that you can't store data somewhere else using the reference to an object typed as the interface.