HasFlag doesn't exist in NET 3.5
Merge pull request #108 from punker76/grouping-insertion-HasFlag-fix

HasFlag doesn't exist in NET 3.5