CloneSet498


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
28220.989compilation_unit
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1281
src/NHibernate/Type/GenericSortedDictionaryType.cs
2281
src/NHibernate/Type/GenericSortedListType.cs
Clone Instance
1
Line Count
28
Source Line
1
Source File
src/NHibernate/Type/GenericSortedDictionaryType.cs

using System;
using System.Collections.Generic;

namespace NHibernate.Type
{
        [Serializable]
        public class GenericSortedDictionaryType<TKey, TValue> : GenericMapType<TKey, TValue>
        {
                private readonly IComparer<TKey> comparer;

                public GenericSortedDictionaryType(string role, string propertyRef, IComparer<TKey> comparer)
                        : base(role, propertyRef)
                {
                        this.comparer = comparer;
                }

                public IComparer<TKey> Comparer
                {
                        get { return comparer;
                            }
                }

                public override object Instantiate(int anticipatedSize)
                {
                        return new SortedDictionary<TKey, TValue> (comparer);
                }

        }
}


Clone Instance
2
Line Count
28
Source Line
1
Source File
src/NHibernate/Type/GenericSortedListType.cs

using System;
using System.Collections.Generic;

namespace NHibernate.Type
{
        [Serializable]
        public class GenericSortedListType<TKey, TValue> : GenericMapType<TKey, TValue>
        {
                private readonly IComparer<TKey> comparer;

                public GenericSortedListType(string role, string propertyRef, IComparer<TKey> comparer)
                        : base(role, propertyRef)
                {
                        this.comparer = comparer;
                }

                public IComparer<TKey> Comparer
                {
                        get { return comparer;
                            }
                }

                public override object Instantiate(int anticipatedSize)
                {
                        return new SortedList<TKey, TValue> (comparer);
                }

        }
}


Clone AbstractionParameter Count: 2Parameter Bindings

using System;
using System.Collections.Generic;
namespace NHibernate.Type
{
   [Serializable]
   public class [[#variable66e9fc00]]<TKey, TValue>: GenericMapType<TKey, TValue>
   {
      private readonly IComparer<TKey> comparer;

      public [[#variable66e9fc00]](string role, string propertyRef, IComparer<TKey> comparer): base(role, propertyRef)
      {
         this.comparer = comparer;
      }

      public IComparer<TKey> Comparer
      {
         get
         {
            return comparer;
         }
      }

      public override object Instantiate(int anticipatedSize)
      {
         return new [[#variable54a622a0]]<TKey, TValue> (comparer);
      }

   }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#66e9fc00]]
GenericSortedDictionaryType 
12[[#66e9fc00]]
GenericSortedListType 
21[[#54a622a0]]
SortedDictionary 
22[[#54a622a0]]
SortedList