2

If i have a property like this

[CLSCompliant(false)]
public uint Something { ... }

and want to write an alternative, i can not just write an overload as i would do for methods. But how should i name it? Is there some general way in the .NET libs?

public long SomethingAlternative { ... }
ordag
  • 2,401
  • 4
  • 25
  • 35

3 Answers3

2

I would suggest SomethingAsInt64 to explicitly indicate the behavioural difference.

Dan Puzey
  • 32,863
  • 3
  • 74
  • 96
2

Maybe do it the reverse way: make the complaint version "something" and the non-compliant as "SomethingUnsigned"

Mark Sowul
  • 9,920
  • 1
  • 43
  • 49
1

SomethingCompliant meaning that it is compliant?

Mike
  • 5,708
  • 8
  • 55
  • 87