这段代码:BitArraybits=newBitArray(newbyte[]{7});foreach(boolbitinbits){Console.WriteLine(bit?1:0);}给我以下输出:11100000不应该反过来吗?像这样:00000111我知道有小端和大端,尽管这些术语仅指字节的位置。据我所知,它们不会影响位。 最佳答案 documentationforBitArray状态:Thefirstbyteinthearrayrepresentsbits0through7,thesecondbyterepresents