nikov

Why does typeof(System.UIntPtr).IsPrimitive return 'true'

MSDN says:

Property Value
true if the Type is one of the primitive types; otherwise, false.

Remarks
The primitive types are Boolean, Byte, SByte, Int16, UInt16, Int32, UInt32, Int64, UInt64, IntPtr, Char, Double, and Single.

No UIntPtr here...



Re: Common Language Runtime Why does typeof(System.UIntPtr).IsPrimitive return 'true'?

nobugz

The remarks section is wrong. System.UIntPtr is not CLS compliant and not used in the CLR. Quoting from the library: "The UIntPtr type is provided mostly to maintain architectural symmetry with the IntPtr type."





Re: Common Language Runtime Why does typeof(System.UIntPtr).IsPrimitive return 'true'?

nikov

Thanks.
Is is possible to fix the remarks in MSDN




Re: Common Language Runtime Why does typeof(System.UIntPtr).IsPrimitive return 'true'?

nobugz

Use Product Feedback, I gave you the link in another thread.





Re: Common Language Runtime Why does typeof(System.UIntPtr).IsPrimitive return 'true'?

Feng Chen - MSFT

Hi nikov,

I suggest you to add a ˇ°Community Contentˇ± in the MSDN document page.

We are aware of the issue. In addition to your feedback on the public document page, we are also communicating on this issue internally. There are some processes for filing a document change request and we cannot guarantee it will be correct immediately. However, we will evaluate it as soon as possible.

Thanks for your valuable feedback!