private bool IsContentEmpty(TileContent item, int ignoreFlags) { var contentFlag = 1 << (int)item.GetContentType(); return((contentFlag & ignoreFlags) != 0); }