-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove LINQ and reflection from EasingTypeConverter (#19260)
* Clean up / Linq removal Cleaned up the methods and added more up to date .NET syntax as well as removing the usage of LINQ. * Removed ToLowerInvariant As the switch makes use of nameof the usage of ToLowerInvariant is redundant. * Fix return value / further improvements The value now returns an easing instead of a string (oops!), I have also implemented a local method to check case sensitive strings for the switch statement allowing the same functionality as previous. * Tests * Update EasingTypeConverter.cs --------- Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
- Loading branch information
1 parent
9d71d32
commit d8d9488
Showing
3 changed files
with
108 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters