Visual Studio 2012抱怨比较两个画笔:
private void SetLabel(string stText, Brushes colorBackground)
{
if (colorBackGround == Brushes.Yellow)
...
}
错误讯息:"The name 'colorBackGround' does not exist in the current context"
答案 0 :(得分:0)
colorBackGround与colorBackground不同! C#区分大小写