I was just wondering whether anyone knows why the property FileInfo.Length
is of type long
instead of ulong
? I don't think the size of a file can ever be negative.
Was this a general design decision for the .NET framework, since other length properties (e.g. string.Length
) are also of type long?
ulong
isn't a CLS-compliant type. The framework tends to use CLS-compliant types where possible.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With