A law student at Macquarie University has been diagnosed with measles after unknowingly exposing university students and staff to the highly-contagious condition.

The female student in her 20s had been vaccinated, according to NSW Health. She is the 35th case of measles in the state since Christmas and spent time at the North Ryde campus while infectious on Wednesday April 3 and Thursday April 4.

A law student at Macquarie University is the 35th case of measles in NSW since Christmas. Credit:Virginia Star

NSW Health issued a fact sheet to students and faculty members who attended international law, marketing, property law and statistics tutorials and lectures on the Wednesday and Thursday.

Students and staff who were at the food court and library cafe were also potentially exposed.