Security on method RRS feed

  • Question

  • Hi
      I need to develop a class with some method who can invoke for others assemblis, but some others can only invoked only for one asembli, it is possible?, i be trying with <StrongNameIdentityPermission(SecurityAction.Demand, Name:="Seguridad", Unrestricted:=False)> 
    Sunday, July 13, 2008 8:22 AM


  • Hi,

    You could look at the "InternalsVisibleTo" attribute.  I think you can put this in  AssemblyA to give AssemblyB access to the  internals of AssemblyA, however it's not granualar so AssemblyB will have internal access to all of A.  (Ive not used it myself).


    • Marked as answer by Zhi-Xin Ye Friday, July 18, 2008 4:09 AM
    Sunday, July 13, 2008 5:29 PM