我有一大堆布尔值,我想将它们打包/解包成一个 uint 或类似的值。我怎样才能在 C# 中做到这一点?
c# bit-manipulation bit
bit ×1
bit-manipulation ×1
c# ×1