wpfui icon indicating copy to clipboard operation
wpfui copied to clipboard

Perf: Exclude the unnecessary fields defined on a specific version

Open textGamex opened this issue 1 year ago • 0 comments

Exclude the definition of the CanCenterOverWPFOwnerPropertyInfo field in .NET 8.0 or higher

Pull request type

Please check the type of change your PR introduces:

  • [ ] Update
  • [ ] Bugfix
  • [ ] Feature
  • [ ] Code style update (formatting, renaming)
  • [x] Refactoring (no functional changes, no api changes)
  • [ ] Build related changes
  • [ ] Documentation content changes

What is the current behavior?

In the current implementation, even if the CanCenterOverWPFOwnerPropertyInfo field is not used (.NET 8 and higher), this field is still being initialized.

Issue Number: N/A

What is the new behavior?

Exclude the definition of the CanCenterOverWPFOwnerPropertyInfo field in .NET 8.0 or higher

textGamex avatar Aug 15 '24 23:08 textGamex