小编use*_*973的帖子

无法声明具有不同属性类型的属性

http://imageshack.us/f/403/kasta6.png/

在链接上,我会在程序中向您展示我的所有课程

我的customerframe课堂上有这样的属性:

 public string firstName { get; set; }
 public string lastName { get; set; }
 public CustomerFiles.Phone phone { get; set; }
 public CustomerFiles.Email email { get; set; }
 public CustomerFiles.Address addressinfo { get; set; }
 public string city { get; set; }
 public CustomerFiles.Countries countryinfo { get; set; }
 public string street { get; set; }
 public string zipcode { get; set; }
Run Code Online (Sandbox Code Playgroud)

但我的问题是,当这样做时,我得到指向这4个属性的错误

public CustomerFiles.Phone phone { get; set; }
public CustomerFiles.Email email { get; …
Run Code Online (Sandbox Code Playgroud)

c#

2
推荐指数
1
解决办法
139
查看次数

标签 统计

c# ×1