A project I’ve been working on for quite some times now throws those 2 errors on almost every semi-colons I have :
Yesterday when I left my office the project was building and running correctly, but today when I opened it I have been violently assaulted by more than 600 compilation errors. When I replace each semi-colon manually the 2 errors disappear, but i can’t find them with Ctrl+F.
Here is a sample of my code with errors :
ignoredPropertiesName = ignoredPropertiesName ?? Array.Empty<string>(); // Replaced manually, doesn't thow any error
foreach (PropertyInfo property in objToCompare1.GetType().GetProperties())
{
if (!ignoredPropertiesName.Contains(property.Name, StringComparer.InvariantCultureIgnoreCase))
{
if (!property.GetValue(objInMemory).Equals(property.GetValue(objFromDb)))
{
return false; // Not replaced, throws errors CS1002 and CS1056
}
}
}
return true; // Not replaced, throws errors CS1002 and CS1056
I know what those errors mean, but I have no idea why this is happening. Does anyone have any idea? I kinda don’t want to replace manually more than 300 semi-colons
>Solution :
Someone has (maliciously/mischeviously?) replaced your semicolons with Greek question marks (0x37E).
Lock your computer when you leave your desk and/or review your version control history or policies.