restaurant.cs

来自「这个版本(InteliIM Open Kernel Release 2)是目前最」· CS 代码 · 共 77 行

CS
77
字号
namespace Org.InteliIM.Applications.Tourism.Dinner
{
	/// <summary>
	/// Represents a restaurant.
	/// </summary>
	public class Restaurant
	{
		/// <summary>
		/// Initializes a new instance of the Restaurant class.
		/// </summary>
		public Restaurant()
		{
			
		}		
		
		private string id;
		
		/// <summary>
		/// Gets or sets the id.
		/// </summary>
		public string Id
		{
			get
			{
                if (this.id == null)
                    this.id = "";

                return this.id;
			}
			set
			{
				this.id = value;
			}
		}
		
		private string name;
		
		/// <summary>
		/// Gets or sets the name.
		/// </summary>
		public string Name
		{
			get
			{
                if (this.name == null)
                    this.name = "";

                return this.name;
			}
			set
			{
				this.name = value;
			}
		}
		
		public string address;
		
		/// <summary>
		/// Gets or sets the address.
		/// </summary>
		public string Address
		{
			get
			{
                if (this.address == null)
                    this.address = "";

                return this.address;
			}
			set
			{
				this.address = value;
			}
		}
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?