Browse Source

Call VerifyAccess in AvaloniaObject.ctor

pull/1105/head
Nikita Tsukanov 9 years ago
committed by GitHub
parent
commit
e2b9e5dbaa
  1. 4
      src/Avalonia.Base/AvaloniaObject.cs

4
src/Avalonia.Base/AvaloniaObject.cs

@ -56,7 +56,7 @@ namespace Avalonia
/// </summary> /// </summary>
public AvaloniaObject() public AvaloniaObject()
{ {
CheckAccess(); VerifyAccess();
foreach (var property in AvaloniaPropertyRegistry.Instance.GetRegistered(this)) foreach (var property in AvaloniaPropertyRegistry.Instance.GetRegistered(this))
{ {
object value = property.IsDirect ? object value = property.IsDirect ?
@ -818,4 +818,4 @@ namespace Avalonia
throw new ArgumentException($"Property '{p.Name} not registered on '{this.GetType()}"); throw new ArgumentException($"Property '{p.Name} not registered on '{this.GetType()}");
} }
} }
} }

Loading…
Cancel
Save