0

Why unsigned byte is CLS compliant instead of the signed byte ? All other unsigned types are are not CLS compliant, yet it is just the opposite on bytes.

sbyte x = 1; //NOT CLS Compliant
byte y = 1; //CLS Compliant
Wai Ha Lee
  • 8,598
  • 83
  • 57
  • 92
Gabriel Molter
  • 333
  • 2
  • 10
  • Because CLS compliance defined that way- https://msdn.microsoft.com/en-us/library/vstudio/12a7a7h3(v=vs.100).aspx... Not sure what kind of help you are looking from SO with this. – Alexei Levenkov Sep 10 '15 at 16:40
  • It is a subjective thing no one except Microsoft can tell more. But one fact is that some languages simply do not support unsigned types. – Lex Li Sep 11 '15 at 01:51

0 Answers0