Skip to content

ILens 12

Choose a tag to compare

@tadis174 tadis174 released this 08 Nov 13:39
· 1 commit to main since this release

ILens 12

  • decompile, search_code and the argument text of call_sites now show C# as ILSpy 11.2 writes it, which differs in places from what 9.1 wrote: an anonymous method reads as a lambda, default takes its type from the context, and base. stands before a non-virtual call of an overridden base method
  • decompile and search_code now write C# 14: a ref readonly parameter reads ref readonly, a parameter that takes any number of arguments through a collection reads params, a property that uses the field keyword reads it, and an inline array's elements read as indexes
  • decompile and the argument text of call_sites now pass an argument to a ref readonly parameter with in
  • decompile now 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, decompile of the class now writes a static property with a setter and an initializer over its backing field
  • decompile no longer shows the method a compiler adds to a class to implement an interface member through a base class's method
  • decompile of 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 of Dictionary<TKey,TValue> for its KeyCollection
  • decompile of 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's MoveNext(), where it answered the whole outermost type
  • decompile of 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 text
  • decompile of one accessor now answers it as its part of the property that owns it: an auto-property's getter reads get; and an init setter init;, and an accessor of a property written with C# 14's field keyword writes field, where it wrote the hidden backing field, such as return <Level>k__BackingField;
  • decompile of an accessor without a body, of an abstract or interface property, now ends its line, where it ended in get; with a space
  • compare now shows an accessor's code in the same form
  • decompile on 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 answers This 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 body throw null; or an extern member without a body
  • decompile and compare now 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 feed
  • decompile now writes a C# 14 extension block as one
  • list_members now 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 group
  • list_members' kinds, accessibility and name_contains now take a block's member as its block declares it, and name_contains also finds a block's property by its accessors' method names
  • search_code now writes a C# 14 extension block as decompile writes 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_code now 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 class
  • search_code now 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 default
  • search_code now 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 as SearchText.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 matches
  • search_code of a class the compiler adds and the decompiler left out, or of a struct nested in <PrivateImplementationDetails>, now lists its lines, where it answered No lines matching . in <PrivateImplementationDetails>
  • compare now marks a type whose base class or interface from another assembly gives way to another one, and its view of the type ends with the Declaration: line
  • compare no longer marks a type whose base class or interface keeps its name and only moves to another assembly
  • compare now refuses limit together with member_name, where it had no effect: limit applies only without member_name.
  • analyze now refuses include_compiler_generated with kind call_sites, where it had no effect: include_compiler_generated does not apply to kind 'call_sites'.
  • find_harmony_dependencies now 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.dll 11.2.0.10050