Visual Studio 2012抱怨比较两个画笔

时间:2014-02-21 15:29:54

标签: visual-studio-2012 brushes

Visual Studio 2012抱怨比较两个画笔:

private void SetLabel(string stText, Brushes colorBackground)
{
  if (colorBackGround == Brushes.Yellow)
 ...
}

错误讯息:"The name 'colorBackGround' does not exist in the current context"

1 个答案:

答案 0 :(得分:0)

colorBackGround与colorBackground不同! C#区分大小写