PublicAPIAttribute 和 UsedImplicitlyAttribute 之间是否存在功能差异?
Is there a functional difference between PublicAPIAttribute and UsedImplicitlyAttribute?
使用 ReSharper 的注释,两个注释 PublicAPIAttribute
and UsedImplicitlyAttribute
在 Visual Studio 中使用时看起来表现相同。
我忽略了这两个属性之间的功能差异吗?如果有的话是什么?
不,区别纯粹是语义上的,可以帮助您了解代码中未使用该符号的原因。在功能上,它们都禁用检测未使用符号的检查。
使用 ReSharper 的注释,两个注释 PublicAPIAttribute
and UsedImplicitlyAttribute
在 Visual Studio 中使用时看起来表现相同。
我忽略了这两个属性之间的功能差异吗?如果有的话是什么?
不,区别纯粹是语义上的,可以帮助您了解代码中未使用该符号的原因。在功能上,它们都禁用检测未使用符号的检查。