Is there any point in specifying a Guid when using ComVisible(false)?

后端 未结 3 2144
庸人自扰
庸人自扰 2020-12-15 02:41

When you create a new C# project in Visual Studio, the generated AssemblyInfo.cs file includes an attribute specifying an assembly GUID. The comment above the attribute stat

3条回答
  •  长情又很酷
    2020-12-15 03:36

    Nope, no real reason to include it. It's really pretty unnecessary except in very specific COM interop scenarios. Though I suppose there could be something useful about having a GUID that you can access with reflection. But since it's not guaranteed to be there, its not like you could rely on it.

提交回复
热议问题