Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
14 | 2 | 1 | 0.986 | class_member_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 14 | 48 | src/NHibernate/Type/TicksType.cs |
2 | 14 | 53 | src/NHibernate/Type/TimeSpanType.cs |
| ||||
/// <summary></summary> public override System.Type ReturnedClass { get { return typeof(DateTime); } } /// <summary> /// /// </summary> /// <param name="st"></param> /// <param name="value"></param> /// <param name="index"></param> public override void Set(IDbCommand st, object value, int index) { ((IDataParameter)st.Parameters[index]).Value = ((DateTime)value).Ticks; } |
| ||||
/// <summary></summary> public override System.Type ReturnedClass { get { return typeof(TimeSpan); } } /// <summary> /// /// </summary> /// <param name="st"></param> /// <param name="value"></param> /// <param name="index"></param> public override void Set(IDbCommand st, object value, int index) { ((IDataParameter)st.Parameters[index]).Value = ((TimeSpan)value).Ticks; } |
| |||
/// <summary></summary> public override System.Type ReturnedClass { get { return typeof( [[#variable278cf620]]); } } /// <summary> /// /// </summary> /// <param name="st"></param> /// <param name="value"></param> /// <param name="index"></param> public override void Set(IDbCommand st, object value, int index) { ((IDataParameter)st.Parameters[index]).Value = (( [[#variable278cf620]])value).Ticks; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#278cf620]] | TimeSpan |
1 | 2 | [[#278cf620]] | DateTime |