c#中using System.Drawing;错误
usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSy...
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
namespace ConsoleApplication3
{
class Program
{
private string _name;
private DateTime _birthday;
public string Name
{
get
{
return this._name;
}
set {
this._name= value;
}
}
public DateTime Birthday
{
get
{
return this._birthday;
}
set
{
if (this._birthday.Year > 1910 && this._birthday.Year < 2014)
this._birthday = value;
else
this._birthday = DateTime.Now;
}
}
}
}
已经添加了using System.Drawing;为什么还有错误?
错误 4 命名空间“System.Drawing”中不存在类型或命名空间名称“Size”(是否缺少程序集引用?) c:\users\apple\documents\visual studio 2013\Projects\ConsoleApplication3\ConsoleApplication3\Component1.Designer.cs 39 52 ConsoleApplication3 展开
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
namespace ConsoleApplication3
{
class Program
{
private string _name;
private DateTime _birthday;
public string Name
{
get
{
return this._name;
}
set {
this._name= value;
}
}
public DateTime Birthday
{
get
{
return this._birthday;
}
set
{
if (this._birthday.Year > 1910 && this._birthday.Year < 2014)
this._birthday = value;
else
this._birthday = DateTime.Now;
}
}
}
}
已经添加了using System.Drawing;为什么还有错误?
错误 4 命名空间“System.Drawing”中不存在类型或命名空间名称“Size”(是否缺少程序集引用?) c:\users\apple\documents\visual studio 2013\Projects\ConsoleApplication3\ConsoleApplication3\Component1.Designer.cs 39 52 ConsoleApplication3 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询