Why is FileInfo.Length long?

I'm just wondering if anyone knows why the FileInfo.Length property is of type long instead of ulong ? I do not think the file size could be negative.

Was this a common design solution for the .NET platform, since other length properties (like string.Length ) are also of type long?

+4
source share
1 answer

ulong not a CLS compatible type. Frames, whenever possible, usually use CLS-compatible types.

+8
source

All Articles