Repository navigation
ILens 12
ILens 12
decompile,search_codeand the argument text ofcall_sitesnow show C# as ILSpy 11.2 writes it, which differs in places from what 9.1 wrote: an anonymous method reads as a lambda,defaulttakes its type from the context, andbase.stands before a non-virtual call of an overridden base methoddecompileandsearch_codenow write C# 14: a ref readonly parameter readsref readonly, a parameter that takes any number of arguments through a collection readsparams, a property that uses thefieldkeyword reads it, and an inline array's elements read as indexesdecompileand the argument text ofcall_sitesnow pass an argument to a ref readonly parameter withindecompilenow writes a call that passes one value or constants to a parameter taking them through a span with those arguments, and a call to an array overload beside such a span overload with its array, which names the method the code calls- In a class that declares a static constructor,
decompileof the class now writes a static property with a setter and an initializer over its backing field decompileno longer shows the method a compiler adds to a class to implement an interface member through a base class's methoddecompileof a nested type now answers that type alone, opening with a comment that names it, such as// System.Collections.Generic.Dictionary<,>.KeyCollection, where it answered the whole outermost type around it, such as all ofDictionary<TKey,TValue>for itsKeyCollectiondecompileof a class the compiler generates for a lambda, an iterator or an async method now answers that class as the compiler generated it, with its fields and the methods that hold the code, such as the iterator'sMoveNext(), where it answered the whole outermost typedecompileof a class the compiler adds and the decompiler left out, such as<PrivateImplementationDetails>, an anonymous type such as<>f__AnonymousType0<,>or an empty<Module>, now answers that class's code under a comment that names it, where it answered an empty textdecompileof one accessor now answers it as its part of the property that owns it: an auto-property's getter readsget;and an init setterinit;, and an accessor of a property written with C# 14'sfieldkeyword writesfield, where it wrote the hidden backing field, such asreturn <Level>k__BackingField;decompileof an accessor without a body, of an abstract or interface property, now ends its line, where it ended inget;with a spacecomparenow shows an accessor's code in the same formdecompileon a reference assembly, such as a .NET reference pack, a .NET Framework reference assembly or a publicized copy of an assembly in a build folder, now answersThis assembly is a reference assembly, which holds a library's declarations without their code, so there is no code to decompile; ask the build the library runs as. find_methods and list_members read declarations alone and answer here., for a whole type and for any member alike, where it showed the placeholder bodies as the code, such as a bodythrow null;or an extern member without a bodydecompileandcomparenow end every line of the code and IL they show with a line feed alone, as the rest of each answer does, where on Windows each such line ended with a carriage return and a line feeddecompilenow writes a C# 14 extension block as onelist_membersnow lists the members of a C# 14 extension block under a line that names the block,4 members of extension(Gauge gauge):, each as the decompiled class declares it and a property with the names of the methods the compiler made of its accessors,public int Doubled { get; } [get_Doubled]; those methods are no longer listed among the methods, and two blocks whose lines read alike share one grouplist_members'kinds,accessibilityandname_containsnow take a block's member as its block declares it, andname_containsalso finds a block's property by its accessors' method namessearch_codenow writes a C# 14 extension block asdecompilewrites its class, and lists a line of a block's member under the method the compiler made of it: an accessor's lines under its accessor's method, a property's other lines under its getter's, and the block's own lines under the class- The error for a member name that is not found now names the methods the compiler made of a C# 14 extension block's property when the name is that property's:
; Doubled is a property of an extension block: ...get_Doubled(Gauge) search_codenow lists each line of a documentation comment under the type or member it documents, where an XML documentation file lies beside the assembly: a search finds a class's own documentation, and a member's stands under the member rather than its classsearch_codenow lists a note the decompiler writes above a declaration under that declaration, such as// C# has no syntax for parameterized property 'Cell'.under the method written for the getter of a Visual Basic property that takes a parameter and is not its class's defaultsearch_codenow answers a search of a type the decompiler writes inside another, such as a lambda's class, an iterator's or async method's state machine or a C# 14 extension block's grouping class, with an error that names the type around it, such asSearchText.Shapes.<>c__DisplayClass1_0 has no declaration of its own in the decompiled code of SearchText.Shapes, where a search finds its contents., where a search of a lambda's class or a state machine answered that no line matchessearch_codeof a class the compiler adds and the decompiler left out, or of a struct nested in<PrivateImplementationDetails>, now lists its lines, where it answeredNo lines matching . in <PrivateImplementationDetails>comparenow marks a type whose base class or interface from another assembly gives way to another one, and its view of the type ends with theDeclaration:linecompareno longer marks a type whose base class or interface keeps its name and only moves to another assemblycomparenow refuseslimittogether withmember_name, where it had no effect:limit applies only without member_name.analyzenow refusesinclude_compiler_generatedwith kindcall_sites, where it had no effect:include_compiler_generated does not apply to kind 'call_sites'.find_harmony_dependenciesnow gives a patch target from an attribute in a nested class of another library with the class's full name, where it gave the nested class's own name alone- ILens now runs on ModelContextProtocol 1.4.1 and Microsoft.Extensions.Hosting 10.0.14
- The third-party index in the release ZIP now names the components that the bundled .NET runtime's notices cover
- The user guide describes every tool's parameters, answers and errors as this release gives them
- The README's Why section lists searching the decompiled code for a pattern among ILens's lookups
- The token-cost table in the README and the user guide is measured on 2026-11-08, against
ICSharpCode.Decompiler.dll11.2.0.10050