C# how do i calculate and add to the string odd and even parity from a binary string : <p>How do i calculate and add to the string odd and even parity from a binary string:</p>

<p>26-Bit Wiegand Format:</p>

<p>Bit 1 = Even Parity over Bits 2 - 13</p>

<p>Bits 26 Odd parity over bits 14 to 25</p>

<p>Ex: 
binary string: 1111 1011 0111 0111 1111 1010</p>

<p>after odd and even calculation: X 1111 1011 0111 0111 1111 1010 Y</p>
