Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ushort and uint
Message
From
26/10/2006 13:15:58
Keith Payne
Technical Marketing Solutions
Florida, United States
 
General information
Forum:
ASP.NET
Category:
Other
Title:
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01164751
Message ID:
01164762
Views:
12
>Does anyone else use ushort and uint in their apps? What does it mean that: "This structure is not CLS-compliant."? I found this note in the docs about UInt16 (ushort) and UInt32 (uint).
>Is it bad to use a not compliant CLS structure in my class?
>
>Thanks,
>Einar

Einar,

Not CLS-compliant means that any properties or methods that use the type are not guaranteed to work with other .NET languages. It's fine to use the types in non-public members. You will probably want to overload any public members that use the type with the next-larger integral type (int for ushort, long for uint).
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform