Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

All my semi-colons are throwing errors CS1002 and CS1056

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 :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

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.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading