.NET: decimal is not primitive?

typeof(decimal).IsPrimitive returns false. Apparently, this is a feature. Deep down, in the IL world, decimal is just a struct, and the fact that it has a keyword in C# does not change it.

Leave a Reply

Your email address will not be published. Required fields are marked *