>From the docs: "The UInt16 type is not CLS-compliant."
>
>Do I want to stay CLS compliant? What if I don't comply?
>
Then the CLS police would come knocking!
Not CLS-compliant means that the type may not be available in other .NET languages. It would become a regular, signed Int16.
>I have a two byte number (0-65535) and UInt16 would work great to represent this number. I have in the past simply used Int32 and added my own error checking to make sure the number is in the range I want it to be. Should I stick with Int32 or should I go non-compliant and use UInt16? (the motivation for researching this is to potentially save 2 bytes of memory <s>)
>
>Thanks,
>Einar
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only