sharpdx / SharpDX

SharpDX GitHub Repository
http://sharpdx.org
MIT License
1.68k stars 642 forks source link

Bug in Mapping.xml file? #1133

Closed RachamimYaakobov closed 5 years ago

RachamimYaakobov commented 5 years ago

Why unsigned int maped to System.Int32 instead of System.UInt32, and the same question about unsigned short and unsigned longlong that maped to System.Int16 and System.Int64 ?

xoofx commented 5 years ago

Because it is a very old decision that had to be made because SharpDX was meant to be compatible with SlimDX and all .NET APIs are mainly working with int. Int Literals in .NET are by default plain int, so that any usage of a SharpDX API would have had required to cast from int to uint.