Section 18.2-287.4 prohibits the carrying of a loaded: a) semi-automatic center-fire rifle or pistol that is equipped with a magazine that will hold more than 20 rounds of ammunition or is designed to accommodate a silencer or equipped with a folding stock; or b) shotgun with a magazine that will hold more than seven rounds of the longest ammunition for which it is chambered, on or about the person on any public street, road, alley, sidewalk, public right-of-way, or in any public park or any other place open to the public.(i) in any city with a population of 160,000 or more or (ii) in any county having an urban county executive form of government or any county or city surrounded thereby or adjacent thereto or in any county having a county manager form of government.