CloneSet941


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
18240.953class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11897
src/NHibernate/Mapping/PersistentClass.cs
218125
src/NHibernate/Mapping/PersistentClass.cs
Clone Instance
1
Line Count
18
Source Line
97
Source File
src/NHibernate/Mapping/PersistentClass.cs

                /// <summary>
                /// Gets the <see cref="System.Type"/> that is being mapped.
                /// </summary>
                /// <value>The <see cref="System.Type"/> that is being mapped.</value>
                /// <remarks>
                /// The value of this is set by the <c>name</c> attribute on the <c>&lt;class&gt;</c> 
                /// element.
                /// </remarks>
                public virtual System.Type MappedClass
                {
                        get
                        {
                                if (mappedClass == null)
                                {
                                        if (className == null)
                                                return null;
                                        try
                                        {
                                                mappedClass = ReflectHelper.ClassForName(className);
                                        }
                                        catch (Exception cnfe)
                                        {
                                                throw new MappingException("entity class not found: " + className, cnfe);
                                        }
                                }
                                return mappedClass;
                        }
                }



Clone Instance
2
Line Count
18
Source Line
125
Source File
src/NHibernate/Mapping/PersistentClass.cs

                /// <summary>
                /// Gets or sets the <see cref="System.Type"/> to use as a Proxy.
                /// </summary>
                /// <value>The <see cref="System.Type"/> to use as a Proxy.</value>
                /// <remarks>
                /// The value of this is set by the <c>proxy</c> attribute. 
                /// </remarks>
                public virtual System.Type ProxyInterface
                {
                        get
                        {
                                if (proxyInterface == null)
                                {
                                        if (proxyInterfaceName == null)
                                                return null;
                                        try
                                        {
                                                proxyInterface = ReflectHelper.ClassForName(proxyInterfaceName);
                                        }
                                        catch (Exception cnfe)
                                        {
                                                throw new MappingException("proxy class not found: " + proxyInterfaceName, cnfe);
                                        }
                                }
                                return proxyInterface;
                        }
                }



Clone AbstractionParameter Count: 4Parameter Bindings

/// <summary>
/// Gets or sets the <see cref="System.Type"/> to use as a Proxy.
/// Gets the <see cref="System.Type"/> that is being mapped.
/// </summary>
/// <value>The <see cref="System.Type"/> to use as a Proxy.</value>
/// <value>The <see cref="System.Type"/> that is being mapped.</value>
/// <remarks>
/// The value of this is set by the <c>proxy</c> attribute. 
/// The value of this is set by the <c>name</c> attribute on the <c>&lt;class&gt;</c> 
/// element.
/// </remarks>
public virtual System.Type [[#variable584913a0]]
{
   get
   {
      if ( [[#variable58491320]]== null)
      {
         if ( [[#variable58491280]]== null)
            return null;
         try
         {
             [[#variable58491320]]= ReflectHelper.ClassForName( [[#variable58491280]]);
         }
         catch (Exception cnfe)
         {
            throw new MappingException( [[#variable584911a0]]+ [[#variable58491280]], cnfe);
         }
      }
      return [[#variable58491320]];
   }
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#584913a0]]
ProxyInterface 
12[[#584913a0]]
MappedClass 
21[[#58491320]]
proxyInterface 
22[[#58491320]]
mappedClass 
31[[#58491280]]
proxyInterfaceName 
32[[#58491280]]
className 
41[[#584911a0]]
"proxy class not found: " 
42[[#584911a0]]
"entity class not found: "