How can I convert a short to an array of booleans (bool[]) in C#? I'm looking for an algorithm, multiple options would be appreciated with their pros and cons.
So for example if I have a short that = 132 that is 10000100 in binary
So I want an array of {false, false, true, false, false, false, false, true }
bool[] ToArrayOfBool(short source)
{
bool[] result = new bool[16];
///Do Some stuff here
return result;
}