(a) The voting procedure at any primary election shall be the same as at any general election, except that the officers shall first determine from the voter's original permanent registration record whether the voter's party affiliation is the same as the party holding the primary election, and, if they are not the same, the voter shall not be permitted to vote in the primary election.
(b) Notwithstanding any provision to the contrary, if a qualified unaffiliated voter who is registered to vote for the first time pursuant to § 2050A of this title appears at a primary election and indicates the intent to enroll in the party holding the primary election, such voter shall be enrolled immediately in that party and be permitted to cast a regular ballot for the primary election.