Skip to content

Commit 04d64f5

Browse files
committed
Move IsDirect = true into DirectPropertyBase
1 parent 6cc7651 commit 04d64f5

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
@@ -27,6 +27,7 @@ private protected DirectPropertyBase(
2727
AvaloniaPropertyMetadata metadata)
2828
: base(name, ownerType, ownerType, metadata)
2929
{
30+
IsDirect = true;
3031
Owner = ownerType;
3132
}
3233

@@ -42,6 +43,7 @@ private protected DirectPropertyBase(
4243
AvaloniaPropertyMetadata metadata)
4344
: base(source, ownerType, metadata)
4445
{
46+
IsDirect = true;
4547
Owner = ownerType;
4648
}
4749

0 commit comments

Comments
 (0)