Click here to Skip to main content
15,906,094 members
Articles / Programming Languages / C#

Why Private C# Fields are Not as Private as you Thought

Rate me:
Please Sign up or sign in to vote.
1.71/5 (9 votes)
3 Feb 2016CPOL4 min read 10.9K   6  
Private fields are not accessible outside the class. It’s C# 101 right? As it turns out, it may not be quite as simple as that.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect
United Kingdom United Kingdom
I remember learning to code on a ZX spectrum - you know, the one with the little rubber keys. Man that makes me feel old! I blog about Domain Driven Design and CQRS, Event Sourcing in particular. So do take a look at my blog if you're interested in that area of development. You can find it here at: http://danielwhittaker.me

Comments and Discussions