Files
ILSpy/ICSharpCode.Decompiler
Siegfried Pammer 997d2f2db3 Recognize a closure struct of a generic method or type
FindRefStructParameters dropped generic instantiations, so a parameter
typed 'ref <>c__DisplayClass0_0<T>' never reached RefStructTypes. Both
consumers therefore missed local functions whose declaring type or method
is generic: the signature test for an obfuscated local function, and
LocalFunctionNeedsAccessibilityChange, which left such a function internal
while its closure struct stayed private - the recompiled output then fails
with CS0051.

Cross-module signatures still drop out, because the generic type part of an
instantiation goes through GetTypeFromReference, which returns nil.

Assisted-by: Claude:claude-opus-5[1m]:Claude Code
2026-08-29 19:19:21 +02:00
..
2025-12-29 19:24:31 +01:00