Share Link
Copied to clipboard
Embed on Your Page
Copied to clipboard
We Stand with Ukraine
readonly IList vs IListReadOnly by monkeyman99
This example of the BitConverter.ToUInt16( byte[ ], int ) 
method generates the following output. It converts elements 
of a byte array to ushort values.

initial byte array
------------------
0F-00-00-FF-03-10-27-FF-FF-7F

index   array elements    ushort
-----   --------------    ------
    1            00-00         0
    0            0F-00        15
    3            FF-03      1023
    5            10-27     10000
    8            FF-7F     32767
    7            FF-FF        -1
Cached Result
Last Run: 5:39:09 am
Compile: 0.107s
Execute: 0s
Memory: 8kb
CPU: 0s