Repository navigation
ILens 14
- A member's line now writes its types with their namespaces where its short form would let one name stand for two different classes, as for a method that takes
Shop.Alpha.BadgeandShop.Beta.Badge, which it wroteConvert(Badge, Badge), inlist_members,find_methods,compareand every answer that names a member, such asanalyze,call_sites,search_codeanddecompile's header - A member's line is now also written in full where a class it names shares its short name with the member's own class, as
Shop.Alpha.Badge.Merge(Shop.Beta.Badge), which it wrote as ifMergetook its own class; for an inherited member,decompileandcompareread the class it comes from as well - The overloads of one name are now written in full where their lines name two classes of one short name, also where they read apart by another part, as
list_members'Take(Shop.Alpha.Badge badge = null)besideTake(Shop.Beta.Badge badge), which it wrote short - Asked through an interface by the name of a member one of its base interfaces declares,
decompile,analyze,call_sitesandcomparenow find that member, as through a base class, instead of answering that it was not found - A name two base interfaces that do not derive from one another declare is now an error naming both members, as C# finds it ambiguous, and methods of such a name are overloads that
parameter_countorparameter_typespicks, unless they share one signature list_memberswithinclude_inheritedon an interface now lists the members of its base interfaces, each marked with the interface it comes from, and names the construction where two constructions of one generic interface bring members that read alike- Where ILens cannot read the library of an interface's base interfaces,
list_memberswithinclude_inheritedand the not-found error now name each base interface it could not read, where they said nothing of them - A name a type does not declare and
System.Objectdoes, such asToString,EqualsorGetHashCodeon a class that does not override it, now means object's member:decompileandanalyzeanswer with the error that namesSystem.Object's file and the type's explicit implementations of the name a hint fits, instead of "not found" or an extension method of the name, which a hint that object's members do not fit still finds analyzethrough another library's type by the name of a member one of its base types declares now answers for the type that declares it, as the code names it, where the assembly names the type asked about, instead of saying that the assembly references no member of the namecomparenow reports an override of aSystem.Objectmethod that only one build's class declares as only that build's, instead of an errordecompilethrough another library's type with a hint that fits no method of the name now names the type's methods and the extension methods of the name, where ILens read the type's library, instead of only where the type comes from- In an F# library, the classes and methods the F# compiler writes for lambdas, closures, sequence, task and object expressions and inner functions, and the fields it adds, now count as compiler-generated, so listing types or members and asking which ones implement or override something leave them out unless
include_compiler_generatedis set, and the line on what was left out counts them among the generated ones - In an F# library, who uses, reads or writes something now names the function a lambda, closure, sequence, task or object expression or inner function was written in, wherever F# put its class, instead of the class's generated method or no user at all
- In an F# library, what a function uses now lists what the code in its lambdas, sequences, object expressions and inner functions uses, instead of the generated class's constructor or cached instance
- In an F# program written as top-level code, its entry point
main@is now listed as a member and named as the user of what that code calls - In an F# library,
call_sitesandsearch_codenow show a call or a line inside such code under the member that holds it in the decompiled code, a task expression's included, whichsearch_codemissed andcall_sitescounted as not shown - Comparing two builds of an F# library no longer reports every lambda class and lifted function as removed and added when lines move above it or when F# renumbers its classes of one name, and reports a changed lambda as a change of the function it was written in, whose C# view now shows the lambda's code after the function's
- In an F# library, what a function, constructor or member uses now names the property whose value F# keeps in the field the code reads or writes, a module value, a
member val, or a record's, an exception's or a union case's field, instead of that field under the name F# gave it, or nothing - In an F# library, who reads, sets or uses such a property now also lists the code outside its accessors that reads or writes its field, and the answer's first line names the backing field among what it consulted
- In an F# library, asking who sets a get-only property whose value F# keeps in such a field, as a module value or a record's field, now lists the code that sets it, such as the static constructor of the file's startup class, instead of an error
- In a C++/CLI library, the functions and global variables written outside any class, which C++/CLI keeps on the global type
<Module>, are now listed byfind_methodsand bylist_membersof<Module>, named as users and used symbols byanalyze, and searched bysearch_codeover the assembly withoutinclude_compiler_generated, while what the compiler and its runtime add there, such as the static constructor, the dynamic initializers and the fields ending in$initializer$, stays left out unless it is set - In a C++/CLI library, the types whose names hold
@and the types in the namespaces<CppImplementationDetails>and<CrtImplementationDetails>now count as compiler-generated comparenow compares the global type<Module>of a C++/CLI library and reports a changed global function as a change of that function instead of a change of each method that calls it, and shows<Module>as changed, never as added or removed, where only one build's global type holds such code- In a C++/CLI library,
call_sitesnow shows the calls in a global function whose address another function takes, such as a destructor passed to the runtime's unwind helper, under that function with their arguments, instead of counting them as not shown under the function that takes the address, and the answers on who uses something name that function - For a method Burst compiles,
analyzenow reports what Burst's copy of its code,X$BurstManaged, uses under the method itself:used_byand the other questions of who uses something name the method instead of the copy, anduseson the method lists what the copy uses list_membersandfind_methodsnow leave out Burst's copyX$BurstManagedunlessinclude_compiler_generatedis setuseson a method of Burst's wrapper class now lists what that method calls, instead of nothingdecompileof a method now shows the code the decompiler writes apart from it after the method, each part after a line// Generated: <member>: Burst's copy for a method Burst compiles, and for an F# function the code of its lambdas, closures, sequence, task and object expressions and inner functions- What a method uses now names the auto-property whose hidden backing field it reads or writes outside the property's accessors, such as a constructor that sets a get-only property, instead of leaving it out as compiler-generated
- Who uses, reads or writes an auto-property now also lists the code that reads or writes its backing field, and the answer's first line names the backing field among what it consulted
- Asking who sets a read-only auto-property now lists the code that sets it, such as its constructors, instead of an error
- The
Not checked:line on a parameter's keyword now gives each call the reason of the library it names, so two classes of one name from two libraries each get a line - The
Not checked:line on a parameter's keyword no longer says that a class as loaded declares no such method when the library the call names was never found, as for a core type such asUnsafe - The
Not checked:line for a class ILens could not read now names only the libraries its calls name - What a method uses now writes
refand theNot checked:line for a call into a library ILens did not find, also where another library has a class of the same name that declares the method, instead of that class'sout,inorref readonly - The header of an answer about who uses another assembly's method now writes
refand theNot checked:line where any reference to the method goes through a library ILens did not find, instead of the keyword of the first reference's class - The not-found error for a constructor now names the type alone, without its base types or extension methods
- An unknown argument to a tool that takes no arguments now says that it takes none
- A native library, a program database or a file of an unknown format now gets a sentence saying that it is no .NET assembly, instead of the reading library's internal error
- Errors that list types of one name with different counts of type parameters now list them sorted by the printed name
- The user guide describes every tool's parameters, answers and errors as this release gives them
- The token-cost table in the README and the user guide is measured on 2026-12-05, against
ICSharpCode.Decompiler.dll11.2.0.10050