Skip to content

Commit b693d86

Browse files
committed
Move IsDirect = true into DirectPropertyBase
1 parent 9c6a2c9 commit b693d86

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Avalonia.Base/DirectProperty.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ internal DirectProperty(
3232
{
3333
Getter = getter ?? throw new ArgumentNullException(nameof(getter));
3434
Setter = setter;
35-
IsDirect = true;
3635
IsReadOnly = setter is null;
3736
}
3837

@@ -52,7 +51,6 @@ private DirectProperty(
5251
{
5352
Getter = getter ?? throw new ArgumentNullException(nameof(getter));
5453
Setter = setter;
55-
IsDirect = true;
5654
IsReadOnly = setter is null;
5755
}
5856

src/Avalonia.Base/DirectPropertyBase.cs

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

@@ -43,6 +44,7 @@ private protected DirectPropertyBase(
4344
AvaloniaPropertyMetadata metadata)
4445
: base(source, ownerType, metadata)
4546
{
47+
IsDirect = true;
4648
Owner = ownerType;
4749
}
4850

0 commit comments

Comments
 (0)