float == Single, so checking both typeof(float) and typeof(Single) is redundant.