CloneSet546


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
24440.968compilation_unit
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1241
src/NHibernate/Properties/CamelCaseUnderscoreStrategy.cs
2201
src/NHibernate/Properties/PascalCaseMStrategy.cs
3251
src/NHibernate/Properties/PascalCaseMUnderscoreStrategy.cs
4241
src/NHibernate/Properties/PascalCaseUnderscoreStrategy.cs
Clone Instance
1
Line Count
24
Source Line
1
Source File
src/NHibernate/Properties/CamelCaseUnderscoreStrategy.cs

namespace NHibernate.Properties
{
        /// <summary>
        /// Implementation of <see cref="IFieldNamingStrategy"/> for fields that are prefixed with
        /// an underscore and the PropertyName is changed to camelCase.
        /// </summary>
        public class CamelCaseUnderscoreStrategy : IFieldNamingStrategy
        {
                #region IFieldNamingStrategy Members

                /// <summary>
                /// Converts the Property's name into a Field name by making the first character 
                /// of the <c>propertyName</c> lowercase and prefixing it with an underscore.
                /// </summary>
                /// <param name="propertyName">The name of the mapped property.</param>
                /// <returns>The name of the Field in CamelCase format prefixed with an underscore.</returns>
                public string GetFieldName(string propertyName)
                {
                        return "_" + propertyName.Substring(0, 1).ToLowerInvariant() + propertyName.Substring(1);
                }

                #endregion
        }
}


Clone Instance
2
Line Count
20
Source Line
1
Source File
src/NHibernate/Properties/PascalCaseMStrategy.cs

namespace NHibernate.Properties
{
        internal class PascalCaseMStrategy : IFieldNamingStrategy
        {
                #region IFieldNamingStrategy Members

                /// <summary>
                /// Converts the Property's name into a Field name by making the first character 
                /// of the <c>propertyName</c> uppercase and prefixing it with the letter 'm'.
                /// </summary>
                /// <param name="propertyName">The name of the mapped property.</param>
                /// <returns>The name of the Field in PascalCase format prefixed with an 'm'.</returns>
                public string GetFieldName(string propertyName)
                {
                        return "m" + propertyName.Substring(0, 1).ToUpperInvariant() + propertyName.Substring(1);
                }

                #endregion
        }
}


Clone Instance
3
Line Count
25
Source Line
1
Source File
src/NHibernate/Properties/PascalCaseMUnderscoreStrategy.cs

namespace NHibernate.Properties
{
        /// <summary>
        /// Implementation of <see cref="IFieldNamingStrategy"/> for fields that are prefixed with
        /// an <c>m_</c> and the first character in PropertyName capitalized.
        /// </summary>
        public class PascalCaseMUnderscoreStrategy : IFieldNamingStrategy
        {
                #region IFieldNamingStrategy Members

                /// <summary>
                /// Converts the Property's name into a Field name by making the first character 
                /// of the <c>propertyName</c> uppercase and prefixing it with the letter 'm' 
                /// and an underscore.
                /// </summary>
                /// <param name="propertyName">The name of the mapped property.</param>
                /// <returns>The name of the Field in PascalCase format prefixed with an 'm' and an underscore.</returns>
                public string GetFieldName(string propertyName)
                {
                        return "m_" + propertyName.Substring(0, 1).ToUpperInvariant() + propertyName.Substring(1);
                }

                #endregion
        }
}


Clone Instance
4
Line Count
24
Source Line
1
Source File
src/NHibernate/Properties/PascalCaseUnderscoreStrategy.cs

namespace NHibernate.Properties
{
        /// <summary>
        /// Implementation of <see cref="IFieldNamingStrategy"/> for fields that are prefixed with
        /// an <c>_</c> and the first character in PropertyName capitalized.
        /// </summary>
        public class PascalCaseUnderscoreStrategy : IFieldNamingStrategy
        {
                #region IFieldNamingStrategy Members

                /// <summary>
                /// Converts the Property's name into a Field name by making the first character 
                /// of the <c>propertyName</c> uppercase and prefixing it with an underscore.
                /// </summary>
                /// <param name="propertyName">The name of the mapped property.</param>
                /// <returns>The name of the Field in PascalCase format prefixed with an underscore.</returns>
                public string GetFieldName(string propertyName)
                {
                        return "_" + propertyName.Substring(0, 1).ToUpperInvariant() + propertyName.Substring(1);
                }

                #endregion
        }
}


Clone AbstractionParameter Count: 4Parameter Bindings

namespace NHibernate.Properties
{
    [[#variable70048280]]class [[#variable2983faa0]]: IFieldNamingStrategy
   {
      #region IFieldNamingStrategy Members
      /// <summary>
      /// Converts the Property's name into a Field name by making the first character 
      /// of the <c>propertyName</c> lowercase and prefixing it with an underscore.
      /// of the <c>propertyName</c> uppercase and prefixing it with the letter 'm'.
      /// of the <c>propertyName</c> uppercase and prefixing it with the letter 'm' 
      /// and an underscore.
      /// of the <c>propertyName</c> uppercase and prefixing it with an underscore.
      /// </summary>
      /// <param name="propertyName">The name of the mapped property.</param>
      /// <returns>The name of the Field in CamelCase format prefixed with an underscore.</returns>
      /// <returns>The name of the Field in PascalCase format prefixed with an 'm'.</returns>
      /// <returns>The name of the Field in PascalCase format prefixed with an 'm' and an underscore.</returns>
      /// <returns>The name of the Field in PascalCase format prefixed with an underscore.</returns>
      public string GetFieldName(string propertyName)
      {
         return [[#variable2983fa20]]+ propertyName.Substring(0, 1). [[#variable2983fa00]]() + propertyName.Substring(1);
      }

   #endregion
   }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#70048280]]
/// <summary>
/// Implementation of <see cref="IFieldNamingStrategy"/> for fields that are prefixed with
/// an underscore and the PropertyName is changed to camelCase.
/// </summary>
public 
12[[#70048280]]
internal 
13[[#70048280]]
/// <summary>
/// Implementation of <see cref="IFieldNamingStrategy"/> for fields that are prefixed with
/// an <c>m_</c> and the first character in PropertyName capitalized.
/// </summary>
public 
14[[#70048280]]
/// <summary>
/// Implementation of <see cref="IFieldNamingStrategy"/> for fields that are prefixed with
/// an <c>_</c> and the first character in PropertyName capitalized.
/// </summary>
public 
21[[#2983faa0]]
CamelCaseUnderscoreStrategy 
22[[#2983faa0]]
PascalCaseMStrategy 
23[[#2983faa0]]
PascalCaseMUnderscoreStrategy 
24[[#2983faa0]]
PascalCaseUnderscoreStrategy 
31[[#2983fa20]]
"_" 
32[[#2983fa20]]
"m" 
33[[#2983fa20]]
"m_" 
34[[#2983fa20]]
"_" 
41[[#2983fa00]]
ToLowerInvariant 
42[[#2983fa00]]
ToUpperInvariant 
43[[#2983fa00]]
ToUpperInvariant 
44[[#2983fa00]]
ToUpperInvariant