我所有的分号都抛出错误 CS1002 和 CS1056
All my semi-colons are throwing errors CS1002 and CS1056
我已经工作了很长时间的一个项目现在几乎在我有的每个分号上都会抛出这 2 个错误:
昨天我离开办公室时,项目正在构建并且 运行 正确,但是今天打开它时,我被 600 多个编译错误猛烈攻击。当我手动替换每个分号时,2 个错误消失了,但我无法使用 Ctrl+F 找到它们。
这是我的错误代码示例:
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
我知道这些错误是什么意思,但我不知道为什么会这样。有人有什么主意吗?我有点不想手动替换超过 300 个分号
有人 (maliciously/mischeviously?) 将您的分号替换为 Greek question marks :
U+037E ; GREEK QUESTION MARK
离开办公桌时锁定计算机and/or查看版本控制历史记录或策略。
我已经工作了很长时间的一个项目现在几乎在我有的每个分号上都会抛出这 2 个错误:
昨天我离开办公室时,项目正在构建并且 运行 正确,但是今天打开它时,我被 600 多个编译错误猛烈攻击。当我手动替换每个分号时,2 个错误消失了,但我无法使用 Ctrl+F 找到它们。
这是我的错误代码示例:
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
我知道这些错误是什么意思,但我不知道为什么会这样。有人有什么主意吗?我有点不想手动替换超过 300 个分号
有人 (maliciously/mischeviously?) 将您的分号替换为 Greek question marks :
U+037E ; GREEK QUESTION MARK
离开办公桌时锁定计算机and/or查看版本控制历史记录或策略。