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

📄 drive.cs

📁 NHibernate NET开发者所需的
💻 CS
字号:
using System;

namespace NHibernate.Test.NHSpecificTest.NH750
{
	public class Drive
	{
		public Drive() : base()
		{
		}

		public Drive(string classFullName)
			: this()
		{
			_classFullName = classFullName;
		}

		private int _id;

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

		private string _classFullName;

		public string ClassFullName
		{
			get { return _classFullName; }
			set { _classFullName = value; }
		}

		public override bool Equals(object obj)
		{
			Drive that = obj as Drive;
			if (that != null)
				return that.ClassFullName.Equals(_classFullName);
			else
				return base.Equals(obj);
		}

		public override int GetHashCode()
		{
			return _classFullName.GetHashCode();
		}
	}
}

⌨️ 快捷键说明

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