Skip to content

Commit 5565135

Browse files
committed
Rename IDirectPropertyAccessor.Owner to OwnerType
1 parent 04d64f5 commit 5565135

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

src/Avalonia.Base/AvaloniaPropertyRegistry.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ public DirectPropertyBase<T> GetRegisteredDirect<T>(
331331
AvaloniaObject o,
332332
DirectPropertyBase<T> property)
333333
{
334-
if (property.Owner == o.GetType())
334+
if (property.OwnerType == o.GetType())
335335
{
336336
return property;
337337
}

src/Avalonia.Base/DirectPropertyBase.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ private protected DirectPropertyBase(
2828
: base(name, ownerType, ownerType, metadata)
2929
{
3030
IsDirect = true;
31-
Owner = ownerType;
3231
}
3332

3433
/// <summary>
@@ -44,14 +43,8 @@ private protected DirectPropertyBase(
4443
: base(source, ownerType, metadata)
4544
{
4645
IsDirect = true;
47-
Owner = ownerType;
4846
}
4947

50-
/// <summary>
51-
/// Gets the type that registered the property.
52-
/// </summary>
53-
public Type Owner { get; }
54-
5548
/// <summary>
5649
/// Gets the value of the property on the instance.
5750
/// </summary>

src/Avalonia.Base/IDirectPropertyAccessor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ internal interface IDirectPropertyAccessor
1717
/// <summary>
1818
/// Gets the class that registered the property.
1919
/// </summary>
20-
Type Owner { get; }
20+
Type OwnerType { get; }
2121

2222
/// <summary>
2323
/// Gets the value of the property on the instance.

0 commit comments

Comments
 (0)