Any other C# traps and pitfalls you've been caught by? Let me know. Source code available at: github.com/JasperKent/Indexer-and-Property-Encapsulation Remember to subscribe at kzbin.info/door/qWQzlUDdllnLmtgfSgYTCA And if you liked the video, click the 👍.
@spicymustard90662 жыл бұрын
This channel is underrated, I enjoy the deep dives on all these aspects of C#. Appreciated how you even showed the C++ history
@francescopaoloribaudo33842 жыл бұрын
As usual very, very interesting. Thank you very much Jasper Kent👍
@paulecampbell2 жыл бұрын
nice video Jasper but what about a private set? that'd make score read-only
@CodingTutorialsAreGo2 жыл бұрын
Not quite. If the setter were private then Score couldn't be changed directly, but it could be changed by a public method of Panellist, which would be accessibly via the indexer. If there were no path from a public method to the setter, then you might as well remove the setter completely.