You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BitArray CopyTo(Array, Int32) doesn't respect index
When using CopyTo method, the index passed as parameter is not respected and the BitArray is copied at the end of the Array. I found this issue when using a Byte array.
General
Console Project
.NET Core 3.0 Preview 8
Windows 10 Pro x64
byte[] byteArray = new byte[10];
BitArray bitArray = new BitArray(1);
bitArray[0] = true;
bitArray.CopyTo(byteArray, 5);
Expected: 1 in position 5 of byteArray Actual: 1 at the end of the byteArray
Tested against past versions of .NET Core (.NET Core 2.X) and worked as `expected.```
The text was updated successfully, but these errors were encountered:
danielValdezR
changed the title
copyto
BitArray.CopyTo(array, index) doesn't respect index
Aug 15, 2019
danielValdezR
changed the title
BitArray.CopyTo(array, index) doesn't respect index
BitArray.CopyTo(array, index) doesn't respect index - .NET Core 3.0 Preview 8
Aug 15, 2019
BitArray CopyTo(Array, Int32) doesn't respect index
When using CopyTo method, the index passed as parameter is not respected and the BitArray is copied at the end of the Array. I found this issue when using a Byte array.
General
Console Project
.NET Core 3.0 Preview 8
Windows 10 Pro x64
Expected: 1 in position 5 of byteArray
Actual: 1 at the end of the byteArray
Tested against past versions of .NET Core (.NET Core 2.X) and worked as `expected.```
The text was updated successfully, but these errors were encountered: