Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 2 | 5 | 0.970 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 30 | src/NHibernate/Properties/BasicPropertyAccessor.cs |
2 | 8 | 53 | src/NHibernate/Properties/BasicPropertyAccessor.cs |
| ||||
#region IPropertyAccessor Members /// <summary> /// Create a <see cref="BasicGetter"/> for the mapped 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="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) { BasicGetter result = GetGetterOrNull(type, propertyName); if (result == null) { throw new PropertyNotFoundException(type, propertyName, "getter"); } return result; } |
| ||||
/// <summary> /// Create a <see cref="BasicSetter"/> for the mapped 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="BasicSetter"/> 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 Property specified by the <c>propertyName</c> could not /// be found in the <see cref="System.Type"/>. /// </exception> public ISetter GetSetter(System.Type type, string propertyName) { BasicSetter result = GetSetterOrNull(type, propertyName); if (result == null) { throw new PropertyNotFoundException(type, propertyName, "setter"); } return result; } |
| |||
#region IPropertyAccessor Members /// <summary> /// Create a <see cref="BasicSetter"/> for the mapped property. /// Create a <see cref="BasicGetter"/> for the mapped 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="BasicSetter"/> to use to set the value of the Property on an /// instance of the <see cref="System.Type"/>. /// </returns> /// The <see cref="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 [[#variable5e4761a0]] [[#variable65295ba0]](System.Type type, string propertyName) { [[#variable65294fe0]]result = [[#variable65295020]](type, propertyName); if (result == null) { throw new PropertyNotFoundException(type, propertyName, [[#variable5e4761c0]]); } return result; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5e4761a0]] | ISetter |
1 | 2 | [[#5e4761a0]] | IGetter |
2 | 1 | [[#65295ba0]] | GetSetter |
2 | 2 | [[#65295ba0]] | GetGetter |
3 | 1 | [[#65294fe0]] | BasicSetter |
3 | 2 | [[#65294fe0]] | BasicGetter |
4 | 1 | [[#65295020]] | GetSetterOrNull |
4 | 2 | [[#65295020]] | GetGetterOrNull |
5 | 1 | [[#5e4761c0]] | "setter" |
5 | 2 | [[#5e4761c0]] | "getter" |