Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: .NET
Expertise: Intermediate
Sep 8, 2017

Exposing Internal Methods to Other Assemblies in .NET

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")]
Srinath M S
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date