Why is Stream.Position long

I was messing around with some binary analysis when I came across something that I was interested in.

The property Stream.Positionis of type Int64or long. Why is this? Shouldn't UInt64more sense be used since the position in the stream cannot be negative?

Does anyone know that using this is a signed long instead of unsigned?

+5
source share
1 answer

UInt64 is not compatible with CLS , and all classes in BCL should be (at least on their public / protected material)

, UInt64 CLS, :)

+10

All Articles