📄 persistentobject.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 + -