17
Some complicated answers going on here. How about this?
private int LeadingZeroes(int value)
{
return (32 - (Convert.ToString(value, 2).Length));
}
Though now I'm guessing there might be some issues with negative numbers and whatnot with this type of solution.