CloneSet940


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8201.000class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1839
src/NHibernate/Properties/NoSetterAccessor.cs
2836
src/NHibernate/Properties/ReadonlyAccessor.cs
Clone Instance
1
Line Count
8
Source Line
39
Source File
src/NHibernate/Properties/NoSetterAccessor.cs

                #region IPropertyAccessor Members
                /// <summary>
                /// Creates an <see cref="BasicPropertyAccessor.BasicGetter"/> to <c>get</c> the value from the Property.
                /// </summary>
                /// <param name="type">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="BasicPropertyAccessor.BasicGetter"/> 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 Property specified by the <c>propertyName</c> could not
                /// be found in the <see cref="System.Type"/>.
                /// </exception>
                public IGetter GetGetter(System.Type type, string propertyName)
                {
                        BasicPropertyAccessor.BasicGetter result = BasicPropertyAccessor.GetGetterOrNull(type, propertyName);
                        if (result == null)
                        {
                                throw new PropertyNotFoundException(type, propertyName, "getter");
                        }
                        return result;
                }



Clone Instance
2
Line Count
8
Source Line
36
Source File
src/NHibernate/Properties/ReadonlyAccessor.cs

                #region IPropertyAccessor Members
                /// <summary>
                /// Creates an <see cref="BasicPropertyAccessor.BasicGetter"/> to <c>get</c> the value from the Property.
                /// </summary>
                /// <param name="type">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="BasicPropertyAccessor.BasicGetter"/> 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 Property specified by the <c>propertyName</c> could not
                /// be found in the <see cref="System.Type"/>.
                /// </exception>
                public IGetter GetGetter(System.Type type, string propertyName)
                {
                        BasicPropertyAccessor.BasicGetter result = BasicPropertyAccessor.GetGetterOrNull(type, propertyName);
                        if (result == null)
                        {
                                throw new PropertyNotFoundException(type, propertyName, "getter");
                        }
                        return result;
                }



Clone AbstractionParameter Count: 0Parameter Bindings

#region IPropertyAccessor Members
/// <summary>
/// Creates an <see cref="BasicPropertyAccessor.BasicGetter"/> to <c>get</c> the value from the Property.
/// </summary>
/// <param name="type">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="BasicPropertyAccessor.BasicGetter"/> 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 Property specified by the <c>propertyName</c> could not
/// be found in the <see cref="System.Type"/>.
/// </exception>
public IGetter GetGetter(System.Type type, string propertyName)
{
   BasicPropertyAccessor.BasicGetter result = BasicPropertyAccessor.GetGetterOrNull(type, propertyName);
   if (result == null)
   {
      throw new PropertyNotFoundException(type, propertyName, "getter");
   }
   return result;
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None