When should [assembly: InternalsVisibleTo()] be used?

后端 未结 3 1749
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-10 12:48

I understand that the InternalVisibleTo attribute is used to expose types and methods with the internal access modifier to a specified assembly. I have only ever us

3条回答
  •  时光说笑
    2020-12-10 13:25

    Apart from testing, the only other scenario I've ever used the InternalsVisibleTo attribute, was when creating serialization assemblies.

    Other than that, I've never used, nor needed it.

提交回复
热议问题