The InternalsVisibleTo
attribute of System.Runtime.CompilerServices
class allows you to expose internal methods of one assembly to another. All you have to do is to specify this in the assemblyinfo.cs
file of the assembly that you want to expose.
Just add the following line to the assembly you want to expose it to.
[assembly: InternalsVisibleTo("ConsumingAssemblyName")]