Has *NOTHING* to do with the LANGUAGE you are using.
Big-endian/little-endian is completely a HARDWARE question. The CPU determines which "endian" is used. The language, per se, does not care. Yes, there are a (very few) library functions that need to no which "endian" the HARDWARE is using, but the actual language in use shouldn't know or care.
Now, since C# is a Microsoft language, and since all the MS languages were originally developed for the Intel-type processors, indeed you would expect that the standard libraries used by C# (and, indeed, by all the .NET languages) would be little-endian. But there is no reason that you couldn't create a CLR (Common Language Runtime...the "core" of all .NET languages) and matching library for big-endian machines. Personally, I very much doubt that Microsoft has chosen to do so at this time, but there's no theoretical reason it couldn't be done. But, again, this has NOTHING directly to do with the language, per se.
|