📄 city.cs
字号:
using System;
namespace BusinessEntity
{
/// <summary>
/// City 的摘要说明。
/// </summary>
public class City
{
private int id;
private string cityName;
private string cityCode;
public int Id
{
get
{
return id;
}
set
{
id = value;
}
}
public string CityName
{
get
{
return cityName;
}
set
{
cityName = value;
}
}
public string CityCode
{
get
{
return cityCode;
}
set
{
cityCode = value;
}
}
public City(int id, string name)
{
this.id = id;
this.cityName = name;
}
}
public class CityCollection : System.Collections.CollectionBase
{
public int Add(City item)
{
return this.List.Add(item);
}
public City this[int index]
{
get
{
return (City)this.List[index];
}
set
{
this.List[index] = value;
}
}
public void Remoce(City item)
{
this.List.Remove(item);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -