Compiler Error CS0122
Visual Studio 2012
'member' is inaccessible due to its protection level
The access modifier for a class member prevents accessing the member. For more information, see Access Modifiers (C# Programming Guide).
One cause of this (not shown in the sample below) can be omitting the /out compiler flag on the target of a friend assembly. For more information, see Friend Assemblies (C# and Visual Basic) and /out (C# Compiler Options)