Click here to Skip to main content
16,017,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I would like to implement to access members of another assembly in .net C#. As per my knowledge one of the ways is through Reflection. Could you please list out or share the alternative ways to achieve this?

Thank you.
Happy coding!!.
Posted

Easiest way is to add a reference to the assembly in your project, then add the appropriate using statement, and access the assembly class members directly in the same way you do .NET assemblies and the classes they contain.
 
Share this answer
 
If you have access to the dll, why don't you add it as reference?
If not, you could try reflection.
 
Share this answer
 
Hi. Use this class:
using System.Runtime.CompilerServices

[assembly: InternalsVisibleTo]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900