So I'm new to C# and I've searched but I just don't know what I'm searching for.
I have a boolean variable called inputs that has saved 32 true/false bits from a ModBus interface library.
Here's an image explaining my 32 true/false values. Basically those 32 true/false values stored in input. I need to collate them into a single 32-bit integer.
What I want to know is how to collate these 32 values into a single 32 bit string i.e (0000 0000 0000 1000 1000 1000 1000 1000) which will obviously be a 32 bit integer and give me a decimal number of 88888.
And I'm just stuck now because I'm not sure what command it is I should be using.