mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 18:57:19 +02:00
[AOT]Clean up some AOT build issues in PowerAccent.Core (#36264)
* init * Use AotCompatibility instead * Replace typeof(Lanaguge) with GetValues<Language> * Create new folder to place source generation context file. --------- Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>
This commit is contained in:
@@ -57,7 +57,7 @@ namespace PowerAccent.Core
|
||||
{
|
||||
public static string[] GetDefaultLetterKey(LetterKey letter, Language[] langs)
|
||||
{
|
||||
if (langs.Length == Enum.GetValues(typeof(Language)).Length)
|
||||
if (langs.Length == Enum.GetValues<Language>().Length)
|
||||
{
|
||||
return GetDefaultLetterKeyALL(letter);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user