G Glen Wilkin via DotNetMonster.com Sep 21, 2005 #1 I want to convert an int to binary and put the binary number's bits into a BitArray. Anyone know how to do this?
I want to convert an int to binary and put the binary number's bits into a BitArray. Anyone know how to do this?
G Guest Sep 21, 2005 #2 System.BitConverter.GetBytes(int) yields a byte[]. BitArray(byte[]) constructor.
G Glen Wilkin via DotNetMonster.com Sep 21, 2005 #3 MarkT said: System.BitConverter.GetBytes(int) yields a byte[]. BitArray(byte[]) constructor. Click to expand... Thanks a lot
MarkT said: System.BitConverter.GetBytes(int) yields a byte[]. BitArray(byte[]) constructor. Click to expand... Thanks a lot