Quantcast C# Error Message: “Inconsistent Accessibility”

An array of C#, PHP, and HTML programming articles, tutorials, and resources

While working in C#, I got this error that was at first a bit difficult to decipher. I removed some of the actual variable terminology, but the overall error message is below.

Inconsistent accessibility: property type is less accessible than property

All this error message really means is that there is a public method that is illegally exposing a private property. Therefore, an easy fix (but not necessary the right one), is to change private property to public. I say this may not be the right approach because this may leave a security hole in your page and may not be how the page was originally designed.

Leave a Reply