-1

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

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

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

4

1 回答 1

0

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

于 2014-02-21T15:32:01.263 回答