CloneSet1189


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
4230.980class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1463
src/NHibernate/Properties/FieldAccessor.cs
2483
src/NHibernate/Properties/FieldAccessor.cs
Clone Instance
1
Line Count
4
Source Line
63
Source File
src/NHibernate/Properties/FieldAccessor.cs

                #region IPropertyAccessor Members
                /// <summary>
                /// Create a <see cref="FieldGetter"/> to <c>get</c> the value of the mapped Property
                /// through a <c>Field</c>.
                /// </summary>
                /// <param name="theClass">The <see cref="System.Type"/> to find the Property in.</param>
                /// <param name="propertyName">The name of the mapped Property to get.</param>
                /// <returns>
                /// The <see cref="FieldGetter"/> to use to get the value of the Property from an
                /// instance of the <see cref="System.Type"/>.</returns>
                /// <exception cref="PropertyNotFoundException" >
                /// Thrown when a Field specified by the <c>propertyName</c> could not
                /// be found in the <see cref="System.Type"/>.
                /// </exception>
                public IGetter GetGetter(System.Type theClass, string propertyName)
                {
                        string fieldName = GetFieldName(propertyName);
                        return new FieldGetter(GetField(theClass, fieldName), theClass, fieldName);
                }



Clone Instance
2
Line Count
4
Source Line
83
Source File
src/NHibernate/Properties/FieldAccessor.cs

                /// <summary>
                /// Create a <see cref="FieldSetter"/> to <c>set</c> the value of the mapped Property
                /// through a <c>Field</c>.
                /// </summary>
                /// <param name="theClass">The <see cref="System.Type"/> to find the mapped Property in.</param>
                /// <param name="propertyName">The name of the mapped Property to set.</param>
                /// <returns>
                /// The <see cref="FieldSetter"/> to use to set the value of the Property on an
                /// instance of the <see cref="System.Type"/>.
                /// </returns>
                /// <exception cref="PropertyNotFoundException" >
                /// Thrown when a Field for the Property specified by the <c>propertyName</c> using the
                /// <see cref="IFieldNamingStrategy"/> could not be found in the <see cref="System.Type"/>.
                /// </exception>
                public ISetter GetSetter(System.Type theClass, string propertyName)
                {
                        string fieldName = GetFieldName(propertyName);
                        return new FieldSetter(GetField(theClass, fieldName), theClass, fieldName);
                }



Clone AbstractionParameter Count: 3Parameter Bindings

#region IPropertyAccessor Members
/// <summary>
/// Create a <see cref="FieldGetter"/> to <c>get</c> the value of the mapped Property
/// Create a <see cref="FieldSetter"/> to <c>set</c> the value of the mapped Property
/// through a <c>Field</c>.
/// </summary>
/// <param name="theClass">The <see cref="System.Type"/> to find the Property in.</param>
/// <param name="propertyName">The name of the mapped Property to get.</param>
/// <param name="theClass">The <see cref="System.Type"/> to find the mapped Property in.</param>
/// <param name="propertyName">The name of the mapped Property to set.</param>
/// <returns>
/// The <see cref="FieldGetter"/> to use to get the value of the Property from an
/// instance of the <see cref="System.Type"/>.</returns>
/// The <see cref="FieldSetter"/> to use to set the value of the Property on an
/// instance of the <see cref="System.Type"/>.
/// </returns>
/// <exception cref="PropertyNotFoundException" >
/// Thrown when a Field specified by the <c>propertyName</c> could not
/// be found in the <see cref="System.Type"/>.
/// Thrown when a Field for the Property specified by the <c>propertyName</c> using the
/// <see cref="IFieldNamingStrategy"/> could not be found in the <see cref="System.Type"/>.
/// </exception>
public [[#variable28f096c0]] [[#variable286492c0]](System.Type theClass, string propertyName)
{
   string fieldName = GetFieldName(propertyName);
   return new [[#variable28649260]](GetField(theClass, fieldName), theClass, fieldName);
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#28f096c0]]
IGetter 
12[[#28f096c0]]
ISetter 
21[[#286492c0]]
GetGetter 
22[[#286492c0]]
GetSetter 
31[[#28649260]]
FieldGetter 
32[[#28649260]]
FieldSetter