CloneSet304


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13350.963class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
112534
src/NHibernate/Type/TypeFactory.cs
213668
src/NHibernate/Type/TypeFactory.cs
313683
src/NHibernate/Type/TypeFactory.cs
Clone Instance
1
Line Count
12
Source Line
534
Source File
src/NHibernate/Type/TypeFactory.cs

                [MethodImpl(MethodImplOptions.Synchronized)]
                public static NullableType GetAnsiStringType(int length)
                {
                        string key = GetKeyForLengthBased(NHibernateUtil.AnsiString.Name, length);

                        IType returnType;
                        if ( !typeByTypeOfName.TryGetValue(key, out returnType))
                        {
                                returnType = new AnsiStringType(SqlTypeFactory.GetAnsiString(length));
                                AddToTypeOfNameWithLength(key, returnType);
                        }
                        return (NullableType)returnType;
                }



Clone Instance
2
Line Count
13
Source Line
668
Source File
src/NHibernate/Type/TypeFactory.cs

                [MethodImpl(MethodImplOptions.Synchronized)]
                public static NullableType GetStringType(int length)
                {
                        string key = GetKeyForLengthBased(NHibernateUtil.String.Name, length);

                        IType returnType;
                        if ( !typeByTypeOfName.TryGetValue(key, out returnType))
                        {
                                returnType = new StringType(SqlTypeFactory.GetString(length));
                                AddToTypeOfNameWithLength(key, returnType);
                        }

                        return (NullableType)returnType;
                }



Clone Instance
3
Line Count
13
Source Line
683
Source File
src/NHibernate/Type/TypeFactory.cs

                [MethodImpl(MethodImplOptions.Synchronized)]
                public static NullableType GetTypeType(int length)
                {
                        string key = GetKeyForLengthBased( typeof(TypeType).FullName, length);

                        IType returnType;
                        if ( !typeByTypeOfName.TryGetValue(key, out returnType))
                        {
                                returnType = new TypeType(SqlTypeFactory.GetString(length));
                                AddToTypeOfNameWithLength(key, returnType);
                        }

                        return (NullableType)returnType;
                }



Clone AbstractionParameter Count: 5Parameter Bindings

[MethodImpl(MethodImplOptions.Synchronized)]
public static NullableType [[#variable56394600]](int length)
{
   string key = GetKeyForLengthBased( [[#variable56394560]]. [[#variable56394500]], length);
   IType returnType;
   if ( !typeByTypeOfName.TryGetValue(key, out returnType))
   {
      returnType = new [[#variable563944a0]](SqlTypeFactory. [[#variable563942a0]](length));
      AddToTypeOfNameWithLength(key, returnType);
   }
   return (NullableType)returnType;
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#56394600]]
GetTypeType 
12[[#56394600]]
GetStringType 
13[[#56394600]]
GetAnsiStringType 
21[[#56394560]]
typeof(TypeType) 
22[[#56394560]]
NHibernateUtil.String 
23[[#56394560]]
NHibernateUtil.AnsiString 
31[[#56394500]]
FullName 
32[[#56394500]]
Name 
33[[#56394500]]
Name 
41[[#563944a0]]
TypeType 
42[[#563944a0]]
StringType 
43[[#563944a0]]
AnsiStringType 
51[[#563942a0]]
GetString 
52[[#563942a0]]
GetString 
53[[#563942a0]]
GetAnsiString