5
我有以下筆誤:= +是什麼意思?它爲什麼編譯?
subcomponentGroupCount = +subcomponentCount;
在以下項目中使用:
int subcomponentGroupCount = 0;
foreach (Subcomponent subcomponent in group.Subcomponents)
{
int subcomponentCount = task.TaskDevice.TaskDeviceSubcomponents.Count(tds => tds.TemplateID == subcomponent.TemplateID);
subcomponentGroupCount = +subcomponentCount;
}
我預期它是+ =,但我在想什麼 「= + VAR」 手段..
你說得好。 –