Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

Why does VB.NET and C# return different sizes for System.Boolean and System.Decimal types?

$
0
0
If all languages are the same under .NET why does Visual Basic return 2 bytes for Len( System.Boolean ) and 8 bytes for Len( System.Boolean ) while returning 1 byte for sizeof( System.Boolean ) and 16 bytes for sizeof( System.Decimal )? If any geniuses out there could help, it would be appreciated.

Viewing all articles
Browse latest Browse all 1710

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>