Fix type name parsing in NativeAOT (#79963)
authorAndrii Kurdiumov <kant2002@gmail.com>
Sun, 25 Dec 2022 23:45:49 +0000 (05:45 +0600)
committerGitHub <noreply@github.com>
Sun, 25 Dec 2022 23:45:49 +0000 (08:45 +0900)
commitbd6709248295deefa1956da3aeb9b0e086fbaca5
tree7679e51f795fad98302be5e24c2a22cfc8f9f3a0
parent712b878bca36d2629136e6b6881fd45bf26da2fb
Fix type name parsing in NativeAOT (#79963)

Simplified type name parsing was breaking if full name or assembly name has underscode ('_') in it. That breaks referencing `SQLitePCL.Batteries_V2, SQLitePCLRaw.batteries_v2` type inside `Microsoft.Data.Sqlite`

Fixes https://github.com/dotnet/efcore/issues/29725
src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/ReflectionMethodBodyScanner.cs