city.cs

来自「根据起降城市,查询到起降时间,以及航次的具体信息.」· CS 代码 · 共 82 行

CS
82
字号
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 + =
减小字号Ctrl + -
显示快捷键?