Using Internal Properties in RazorEngine
问题 Our domain model properties are all "Internal" to protect the BDD approach we have taken. I really like making everything internal. Recently I am trying to get the RazorEngine to process a template using one of these domain models with internal members. When it compiles, I get the error: .Attendee.FirstName' is inaccessible due to its protection level I tried adding this line [assembly: InternalsVisibleTo("RazorEngine")] to the AssemblyInfo.cs of my domain model, but it doesnt seem to help.