用于命名CLS兼容替代属性的模式

如果我有这样的财产
[CLSCompliant(false)]
public uint Something { ... }
并且想要写一个替代方案,我不能像我为方法那样写一个重载。 但我该如何命名呢? .NET库中有一些通用的方法吗?
public long SomethingAlternative { ... }
    
已邀请:
我建议
SomethingAsInt64
明确指出行为差异。     
也许以相反的方式做:将投诉版本设为“某事”,将不合规版设为“SomethingUnsigned”     
SomethingCompliant意味着它是否合规?     

要回复问题请先登录注册