From IL's point of view, private
means private to the assembly, i.e. internal
in C#.
In C#, it is not possible to mark types as private
if they are not nested. IL's equivalent accessibility for such types is nested private
.
So we have:
- C#'s
internal
-> IL'sprivate
(to the assembly) - C#'s
private
-> IL'snested private
(to the enclosing type)