Original Post
I have a binary number in the form of a string eg "1111" which I need to check (each 1 denotes whether a particular square has a property associated with a side, first 1 = top, second =right etc). Is it more efficient to use the convert.ToByte function and then check the number in that byte within a switch statement (eg 15 =all sides have property set) or would it be more efficient to simply do a substring on the string and check those?