It pretty much makes sense to me of using interface with method signature/events and so on.
But, I am not able to find what's the use case for using interfaces with just properties. ( I know properties are methods under the hood and they encapsulate and you can write some code on get/set accessor and such.
What I'm behind is the use case for interface with properties which acts like fields. (just get and set values).
Thanks.
Aucun commentaire:
Enregistrer un commentaire