Return if a given int is an exponent of 2 C#
<p>Given a method of the bool data type that takes in an int variable, what is a <strong>single</strong> line of code that would determine if the int is an exponent of 2 or 2^n.....2,4,8,16,32 etc. I know of a way using a while loop and if statements, but I'm looking for it to be on one line.</p>
