如果我有这样的特性
[CLSCompliant(false)]
public uint Something { ... }
并且想要编写一个替代方案,我不能像编写方法那样只编写一个重载。 但我该怎么命名呢? .NET 库中有一些通用的方法吗?
public long SomethingAlternative { ... }
最佳答案
我建议 SomethingAsInt64
明确指示行为差异。
关于c# - 用于命名 CLS 兼容替代属性的模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5514855/