⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 city.cs

📁 根据起降城市,查询到起降时间,以及航次的具体信息.
💻 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 + -