none
Why _Assembly is not CLSCompliant? RRS feed

  • Question

  • Hello,

    The reason I'm asking is because I need to test one of my classes and mock the assembly but because _Assembly isn't CLSCompliant I can't expose it from a CLSCompliant class, now, I know what to do but I wonder what was/is the reason for it?


    Eyal (http://shilony.net), Regards.

    Tuesday, June 26, 2012 9:48 AM

Answers

All replies

  • Hi,

    as this interface is for access to managed classes from unmanaged code, and should not be called from managed code.


    Sai Kumar K (MCP)
    Blog: Sai's Stuff.
    WebSite: SantoshTechnologies.

    • Proposed as answer by Adavesh Tuesday, June 26, 2012 4:01 PM
    • Marked as answer by Eyal Solnik Tuesday, June 26, 2012 4:12 PM
    Tuesday, June 26, 2012 10:05 AM
  • Hi,

    as this interface is for access to managed classes from unmanaged code, and should not be called from managed code.

    Should have read the remarks section in the documentations that I just noticed, was a really long night. :)

    Eyal (http://shilony.net), Regards.

    Tuesday, June 26, 2012 4:12 PM