[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:
moooyo
2025-01-13 21:01:41 +08:00
committed by GitHub
parent a665975460
commit aa9f3bb540
5 changed files with 19 additions and 9 deletions

View File

@@ -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);
}