Sometimes, it is needed to expose some attribute of a class that is internal or sometimes it is needed to expose an internal class. Basically, it is needed to carry out Unit testing as generally we have unit test code residing in another project.
We can expose an internal class or any internal attribute of a class by using the following attribute:
[assembly: InternalsVisibleTo("AssemblyNameOfTheProjectToWhichTheInternalOfThisClassWillBeVisible, PublicKey= 0000public key of assembly(optional)000")]
public class MyInternalWillBeExposedToSpecificOutsideProject
internal void SomeMethod()
I am truly versatile and 360 degree Engineer having wide range of development experience in .NET and Java Platform. I am also proficient in system level programming in C++. To me technology is not at all a problem, it’s the client requirement that matters! That is I am ready and comfortable to use any technology to make the business of my client a success.
In my five years of experience I have the opportunities to work for fortune 500 companies of US and many renowned clients from Europe.
My Linkedin Profile: http://bd.linkedin.com/in/mahmudazad