Avoid HasFlag in hot-path when targeting netfx
#8779
+48
−0
Merged