CloneSet449


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
20201.000class_member_declarations[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
120134
src/NHibernate/Type/EnumCharType.cs
227186
src/NHibernate/Type/EnumStringType.cs
Clone Instance
1
Line Count
20
Source Line
134
Source File
src/NHibernate/Type/EnumCharType.cs

                public override string ToString(object value)
                {
                        return (value == null) ? null:  GetValue(value).ToString();
                }

                public override object Assemble(object cached, ISessionImplementor session, object owner)
                {
                        if (cached == null)
                        {
                                return null;
                        }
                        else
                        {
                                return GetInstance(cached);
                        }
                }

                public override object Disassemble(object value, ISessionImplementor session, object owner)
                {
                        return (value == null) ? null:  GetValue(value);
                }



Clone Instance
2
Line Count
27
Source Line
186
Source File
src/NHibernate/Type/EnumStringType.cs

                /// <summary>
                /// 
                /// </summary>
                /// <param name="value"></param>
                /// <returns></returns>
                public override string ToString(object value)
                {
                        return (value == null) ? null:  GetValue(value).ToString();
                }

                /// <summary>
                /// 
                /// </summary>
                /// <param name="cached"></param>
                /// <param name="session"></param>
                /// <param name="owner"></param>
                /// <returns></returns>
                public override object Assemble(object cached, ISessionImplementor session, object owner)
                {
                        if (cached == null)
                        {
                                return null;
                        }
                        else
                        {
                                return GetInstance(cached);
                        }
                }

                public override object Disassemble(object value, ISessionImplementor session, object owner)
                {
                        return (value == null) ? null:  GetValue(value);
                }



Clone AbstractionParameter Count: 0Parameter Bindings

/// <summary>
/// 
/// </summary>
/// <param name="value"></param>
/// <returns></returns>
public override string ToString(object value)
{
   return (value == null) ?
          null: GetValue(value).ToString();
}

/// <summary>
/// 
/// </summary>
/// <param name="cached"></param>
/// <param name="session"></param>
/// <param name="owner"></param>
/// <returns></returns>
public override object Assemble(object cached, ISessionImplementor session, object owner)
{
   if (cached == null)
   {
      return null;
   }
   else
   {
      return GetInstance(cached);
   }
}

public override object Disassemble(object value, ISessionImplementor session, object owner)
{
   return (value == null) ?
          null: GetValue(value);
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None