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,497
  • 5
  • 26
  • 35

3 Answers3

2

I would suggest SomethingAsInt64 to explicitly indicate the behavioural difference.

Dan Puzey
  • 33,626
  • 4
  • 73
  • 96
2

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

Mark Sowul
  • 10,244
  • 1
  • 45
  • 51
1

SomethingCompliant meaning that it is compliant?

Mike
  • 5,918
  • 9
  • 57
  • 94