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

📄 persistentobject.cs

📁 工作流的基本资料(文档资料
💻 CS
字号:
using System;

namespace NetBpm.Util.DB
{
	//@portme http://www.codeproject.com/csharp/objserial.asp
//#Serializable#
	public class PersistentObject //: System.Runtime.Serialization.ISerializable
	{
		protected internal Int64 _id;

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

		// toString
		public override String ToString()
		{
			String className = this.GetType().FullName;
			int to = className.Length;
			if (className.EndsWith("Impl"))
			{
				to = to - 4;
			}
			int from = className.LastIndexOf('.') + 1;
			className = className.Substring(from, to - from);
			return className + "[" + _id + "]";
		}

	}
}

⌨️ 快捷键说明

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