Converting a BitArray in to UInt32 C# [duplicate]
问题 This question already has answers here : How can I convert BitArray to single int? (4 answers) Closed 3 years ago . im trying to convert a BitArray {0,0,0,0,0,0,0,0} into this: UInt32 0x0000 How can I do this? 回答1: Try this: new BitArray(yourArray).CopyTo(intArray, 0); 来源: https://stackoverflow.com/questions/37157550/converting-a-bitarray-in-to-uint32-c-sharp