asp.net - Assembly Referencing in C# in Hierarchical order -



asp.net - Assembly Referencing in C# in Hierarchical order -

i have class library containing class1a, class2a, class3a. have class library b containing class1b inherit class1a of assembly a.

i going give assembly b 3rd party without assembly a. problem 3rd party cannot utilize objects of classes1a in class1b until project references assembly a.

can please tell me how accomplish this. reason don't want 3rd party access classes of assembly directly.

you can't accomplish desired behaviour without refactoring "library a".

but if refactoring possible - can alter public classes in library internal, , appying internalsvisibleto attribute these classes can give "library b" permission utilize them.

of course, in case still need give "library a" client , not able utilize classes straight in usual way. note - still possible access non-public methods , classes of assembly using reflection , can't prevent access.

c# asp.net .net .net-assembly

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -