Skip to content

Commit

Permalink
chore: Avoid HasFlags boxing
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromelaban committed Sep 20, 2023
1 parent 1598e04 commit a919999
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Uno.UI/DataBinding/BindingPath.BindingItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -494,19 +494,19 @@ public void Dispose()

private bool IsDisposed
{
get => _flags.HasFlag(Flags.Disposed);
get => (_flags & Flags.Disposed) != 0;
set => SetFlag(value, Flags.Disposed);
}

private bool AllowPrivateMembers
{
get => _flags.HasFlag(Flags.AllowPrivateMembers);
get => (_flags & Flags.AllowPrivateMembers) != 0;
set => SetFlag(value, Flags.AllowPrivateMembers);
}

private bool IsDependencyPropertyValueSet
{
get => _flags.HasFlag(Flags.IsDependencyPropertyValueSet);
get => (_flags & Flags.IsDependencyPropertyValueSet) != 0;
set => SetFlag(value, Flags.IsDependencyPropertyValueSet);
}

Expand All @@ -528,7 +528,7 @@ _dataContextType is not null
}
else
{
return _flags.HasFlag(Flags.IsDependencyProperty);
return (_flags & Flags.IsDependencyProperty) != 0;
}
}
}
Expand Down

0 comments on commit a919999

Please sign in to comment.