You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Optimize conversion of Key enum from/to string, reduce allocations (#9697)
* Simplify CanConvertFrom
* Simplify CanConvertTo
* Speed up and simplify ConvertFrom, add fast-path for F-keys
* Speed up and simplify ConvertTo, add IsDefinedKey helper
* Add documentation, formatting adjustments only
* Use IsDefinedKey in CanConvertTo as wel
8BDF
l
* Remove redundant usings
* Fix an unlikely IndexOutOfRangeException we could have introduced
* Prevent behaviour change, let it throw an exception
* Address PR feedback
* Address nits, fix spelling
0 commit comments