menu.cs

来自「NHibernate NET开发者所需的」· CS 代码 · 共 45 行

CS
45
字号
using System;
using System.Collections;

namespace NHibernate.Test.NHSpecificTest.NH309
{
	/// <summary>
	/// Summary description for Menu.
	/// </summary>
	public class Menu
	{
		private int _id;
		private string _name;
		private IList _nodes;

		public int Id
		{
			get { return this._id; }
			set { this._id = value; }
		}

		public string Name
		{
			get { return this._name; }
			set { this._name = value; }
		}

		public IList Nodes
		{
			get
			{
				if (this._nodes == null)
				{
					this._nodes = new ArrayList();
				}
				return this._nodes;
			}
			set { this._nodes = value; }
		}

		public Menu()
		{
			this._id = -1;
		}
	}
}

⌨️ 快捷键说明

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