When the assembly reader needs to resolve an external assembly, it first looks for it in the
current runtime directory (where the system assemblies are located). Then it looks into a
additional resolution directories. If the assembly is not found there,
-the reader calls the AssemblyResolve event handle so you can customize
+the reader calls the AssemblyResolve event handler so you can customize
how assemblies are resolved. The rules for handling this event are similar with the
System.AppDomain.AssemblyResolve event in .NET Framework. See
https://docs.microsoft.com/dotnet/standard/assembly/resolve-loads for more
diff --git a/docs/api/CilTools.Reflection.ComplexType.html b/docs/api/CilTools.Reflection.ComplexType.html
index 34098ab..a391310 100644
--- a/docs/api/CilTools.Reflection.ComplexType.html
+++ b/docs/api/CilTools.Reflection.ComplexType.html
@@ -90,6 +90,7 @@
Represents an assembly where the metadata element corresponding to the reflection object is stored. Only relevant
+for references (TypeRef or MethodRef), because for definitions containing assembly is the same as Assembly
+property value. (Type: Assembly)
+
+
+
Declaration
+
+
public const int ContainingAssembly = 116
+
+
Field Value
+
+
+
+
Type
+
Description
+
+
+
+
+
System.Int32
+
+
+
+
+
+
CorFlags
Represents the PE image runtime flags (Type: int)
@@ -367,6 +394,31 @@
Field Value
+
ReferenceTarget
+
Represents a target member of reference (TypeRef or MethodRef). (Type: MemberInfo)
+
+
+
Declaration
+
+
public const int ReferenceTarget = 115
+
+
Field Value
+
+
+
+
Type
+
Description
+
+
+
+
+
System.Int32
+
+
+
+
+
+
RvaFieldValue
Represents a byte array containing RVA field's value. (Type: byte[])
Adds the specified custom URL provider into the list of providers used by this generator. URL providers
+define logic how URLs for navigation hyperlinks are rendered.
+
+
+
Declaration
+
+
public void AddUrlProvider(UrlProviderBase provider)
Creates a new instance of the visualization options with default option values
+
+
+
Declaration
+
+
public VisualizationOptions()
+
+
Properties
+
+
+
+
+
EnableInstructionNavigation
+
Gets or sets the boolean value indicating whether the instruction navigation hyperlinks are enabled
+
+
+
Declaration
+
+
public bool EnableInstructionNavigation { get; set; }
+
+
Property Value
+
+
+
+
Type
+
Description
+
+
+
+
+
System.Boolean
+
+
+
+
+
Remarks
+
When this property is set to true, labels in jump instructions are rendered as hyperlinks to
+the target instruction. This property is only honoured by HTML visualizer. The default value is false.
+
+
+
+
+
EnableSyntaxHighlighting
+
Gets or sets the boolean value indicating whether the syntax highlighting is enabled
+
+
+
Declaration
+
+
public bool EnableSyntaxHighlighting { get; set; }
+
+
Property Value
+
+
+
+
Type
+
Description
+
+
+
+
+
System.Boolean
+
+
+
+
+
Remarks
+
The default value is true. This property is honoured by HTML and ConsoleText visualizers.
+
+
+
+
+
HighlightingEndOffset
+
Gets or sets the offset of the last highlighted instruction, in bytes
+
+
+
Declaration
+
+
public int HighlightingEndOffset { get; set; }
+
+
Property Value
+
+
+
+
Type
+
Description
+
+
+
+
+
System.Int32
+
+
+
+
+
Remarks
+
If the instruction highlighting is not used, should be set to -1. This property is only honoured by HTML
+visualizer.The default value is -1.
+
+
+
+
+
HighlightingStartOffset
+
Gets or sets the offset of the first highlighted instruction, in bytes
+
+
+
Declaration
+
+
public int HighlightingStartOffset { get; set; }
+
+
Property Value
+
+
+
+
Type
+
Description
+
+
+
+
+
System.Int32
+
+
+
+
+
Remarks
+
If the instruction highlighting is not used, should be set to -1. This property is only honoured by HTML
+visualizer.The default value is -1.
+
+
Methods
+
+
+
+
+
GetOption(String)
+
Gets the value of the option with the specified name, or null if the option is not set.
CilView is a windows application to display CIL code of methods in .NET assemblies. The key features are:
Displaying CIL code of methods in the specified assembly file or process
@@ -93,7 +93,7 @@
View assembly file
5. The right panel will display the CIL disassembly of the selected method.
All method references on the Formatted tab are hyperlinks to the referenced methods. Clicking one them will open the referenced method's code in the right panel, even if the method is from another assembly, as long as that assembly could be loaded.
-
To view detailed information about CIL instruction, right-click on the instruction opcode in formatted view and choose Instruction information menu item. The displayed dialog box will provide information such as opcode and operand sizes and raw instruction bytes hexadecimal code.
+
To view detailed information about CIL instruction, double-click on the instruction opcode in formatted view. The displayed dialog box will provide information such as opcode and operand sizes and raw instruction bytes hexadecimal code.
View the resulting CIL for C#/VB sources
This feature enables you to view disassembled CIL code corresponding to the entered code snippet. CIL View will compile the provided code in background, and open the output binary if the compilation is successful. If the build fails, it will display the build output to you.
@@ -182,7 +182,7 @@
Exception analysis
The exception analysis is supported when opening both files and processes. However, when you hit any limitations mentioned above, the analysis accuracy decreases.
Source code viewer
This feature enables you to display source code corresponding to disassembled CIL code. Source code viewer can fetch source code using symbols line data (see Disassembler options section above for information about symbols support) or display the decompiled code (currently only supported for abstract methods or methods implemented in unmanaged code).
-
To view the source code for individual instructions, click Tools -> Show source code. Alternatively, you could right-click the instruction of interest in formatted view. In the View source window you'll see the CIL code of the sequence point on the left and its corresponding source code fragment on the right. Use < and > buttons to navigate between sequence points, or the file hyperlink to open the whole source file in your default editor.
+
To view the source code for individual instructions, click Tools -> Show source code. In the View source window you'll see the CIL code of the sequence point on the left and its corresponding source code fragment on the right. Use < and > buttons to navigate between sequence points, or the file hyperlink to open the whole source file in your default editor.
To view the source code for the whole method, click Tools -> Show source code (method). The Source code window will display the method's source code as well as the information about where it was fetched from.
If the source code is located on external server (this feature is called Source Link), the source viewer will prompt you with a dialog box to allow navigating to server. If you choose Yes, the source code will be opened in your default browser. Any subsequent attempts for the same domain will open the browser automatically without prompting again. The Source Link is supported for Portable PDB only.
Using auto-update requires stable internet connection and access to the https://msdn-whiteknight.github.io/ website. If you are using old Windows or .NET Framework versions, you might be unable to connect due to TLS protocol version or ciphersuite mismatch.
-
Copyright (c) 2022, MSDN.WhiteKnight
+
Copyright (c) 2024, MSDN.WhiteKnight
See Help - Credits or credits.txt for copyright and license notices of third-party projects.