Skip to content

Commit 7604d15

Browse files
committed
Remove legacy Property property on PropertyConfiguration
With `PropertyConfiguration` being updated to accept (and expose) a `MemberAccessor` (49ffd61), and dependency classes updated to now reference the `MemberAccessor` property instead of the `Property` property (385bfec, 3d4c9c4, 825bb8b, ed688f9), there is no reason to maintain the `Property` property. This helps ensure all access goes through the `MemberAccessor`. (The `PropertyInfo` can still be accessed via `PropertyConfiguration.MemberAccessor.MemberInfo`, if needed.)
1 parent 39d1703 commit 7604d15

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

OnTopic/Mapping/Internal/PropertyConfiguration.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,9 @@ internal class PropertyConfiguration: ItemConfiguration {
4646
internal PropertyConfiguration(MemberAccessor memberAccessor, string? attributePrefix = ""):
4747
base(memberAccessor.CustomAttributes, memberAccessor.Name, attributePrefix)
4848
{
49-
Property = (PropertyInfo)memberAccessor.MemberInfo;
5049
MemberAccessor = memberAccessor;
5150
}
5251

53-
/*==========================================================================================================================
54-
| PROPERTY: PROPERTY
55-
\-------------------------------------------------------------------------------------------------------------------------*/
56-
/// <summary>
57-
/// The <see cref="PropertyInfo"/> that the current <see cref="PropertyConfiguration"/> is associated with.
58-
/// </summary>
59-
internal PropertyInfo Property { get; }
60-
6152
/*==========================================================================================================================
6253
| PROPERTY: MEMBER ACCESSOR
6354
\-------------------------------------------------------------------------------------------------------------------------*/

0 commit comments

Comments
 (0)