Skip to content

Commit

Permalink
perf: Using context.GetAvaloniaTypes().AvaloniaObject insteand of con…
Browse files Browse the repository at this point in the history
…text.Configuration.TypeSystem.FindType("Avalonia.AvaloniaObject"); (#15258)
  • Loading branch information
workgroupengineering authored Apr 6, 2024
1 parent 7816f11 commit 8117528
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public IXamlAstNode Transform(AstTransformationContext context, IXamlAstNode nod
&& prop.DeclaringType is XamlAstClrTypeReference declaringRef)
{
// Target and declared type aren't assignable but both inherit from AvaloniaObject
var avaloniaObject = context.Configuration.TypeSystem.FindType("Avalonia.AvaloniaObject");
var avaloniaObject = context.GetAvaloniaTypes().AvaloniaObject;
if (avaloniaObject.IsAssignableFrom(targetRef.Type)
&& avaloniaObject.IsAssignableFrom(declaringRef.Type)
&& !declaringRef.Type.IsAssignableFrom(targetRef.Type))
Expand Down

0 comments on commit 8117528

Please sign in to comment.