Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
48 | 2 | 0 | 1.000 | class_member_declarations[9] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 47 | 73 | src/NHibernate/Type/TimeAsTimeSpanType.cs |
2 | 48 | 69 | src/NHibernate/Type/TimeSpanType.cs |
| ||||
public override string ToString(object val) { return ((TimeSpan)val).Ticks.ToString(); } #region IVersionType Members public object Next(object current, ISessionImplementor session) { return Seed(session); } public virtual object Seed(ISessionImplementor session) { return new TimeSpan(DateTime.Now.Ticks); } public object StringToObject(string xml) { return TimeSpan.Parse(xml); } public IComparer Comparator { get { return Comparer<TimeSpan>.Default; } } #endregion public override object FromStringValue(string xml) { return TimeSpan.Parse(xml); } public override System.Type PrimitiveClass { get { return typeof(TimeSpan); } } public override object DefaultValue { get { return TimeSpan.Zero; } } public override string ObjectToSQLString(object value, Dialect.Dialect dialect) { return '\'' + ((TimeSpan)value).Ticks.ToString() + '\''; } |
| ||||
public override string ToString(object val) { return ((TimeSpan)val).Ticks.ToString(); } #region IVersionType Members public object Next(object current, ISessionImplementor session) { return Seed(session); } /// <summary></summary> public virtual object Seed(ISessionImplementor session) { return new TimeSpan(DateTime.Now.Ticks); } public object StringToObject(string xml) { return TimeSpan.Parse(xml); } public IComparer Comparator { get { return Comparer<TimeSpan>.Default; } } #endregion public override object FromStringValue(string xml) { return TimeSpan.Parse(xml); } public override System.Type PrimitiveClass { get { return typeof(TimeSpan); } } public override object DefaultValue { get { return TimeSpan.Zero; } } public override string ObjectToSQLString(object value, Dialect.Dialect dialect) { return '\'' + ((TimeSpan)value).Ticks.ToString() + '\''; } |
| |||
public override string ToString(object val) { return ((TimeSpan)val).Ticks.ToString(); } #region IVersionType Members public object Next(object current, ISessionImplementor session) { return Seed(session); } /// <summary></summary> public virtual object Seed(ISessionImplementor session) { return new TimeSpan(DateTime.Now.Ticks); } public object StringToObject(string xml) { return TimeSpan.Parse(xml); } public IComparer Comparator { get { return Comparer<TimeSpan>.Default; } } #endregion public override object FromStringValue(string xml) { return TimeSpan.Parse(xml); } public override System.Type PrimitiveClass { get { return typeof(TimeSpan); } } public override object DefaultValue { get { return TimeSpan.Zero; } } public override string ObjectToSQLString(object value, Dialect.Dialect dialect) { return '\'' + ((TimeSpan)value).Ticks.ToString() + '\''; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |