Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is FileVersionInfo.FileMinorPart (an int) documented in MSDN to possibly be null?

Tags:

c#

msdn

In MSDN Diagnostics.FileVersionInfo it says that, for example, ProductMinorPart returns an int or null if the value is undefined. However it's not a Nullable<int> - how can it return null? I checked with ILDasm, and the definition is a normal int, no Nullable...

Am I missing something?

like image 582
MBen Avatar asked Jan 28 '26 01:01

MBen


1 Answers

No, you don't appear to be missing something. I'd say the documentation is inaccurate.

It appears that the property returns 0 if the minor part is missing, or if the entire version is missing all together.

like image 109
vcsjones Avatar answered Jan 30 '26 16:01

vcsjones



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!