How icsharpcode/ilspy works
ILSpy is a cross-platform .NET assembly browser and decompiler. The principal workflow is: a user opens an assembly, the desktop frontend organizes it into assembly lists, the decompiler reads metadata and produces C# or project output, and the UI presents navigable results. Sampled code also shows BAML/XAML handling, comparison, bookmarks, themes, command requerying, and PowerShell access. Several frontend and engine links are inferred from documented capabilities because their orchestrating source was not sampled.
Main entry points: ILSpy Desktop UI · ICSharpCode.Decompiler Decompiler Core · XamlDecompiler.cs XAML Decompiler · AssemblyListManager.cs Assembly Lists
Components 19
User Frontends
- Desktop UI
ILSpy - PowerShell Cmdlets
ICSharpCode.Decompiler.PowerShell - Command Routing
ILSpy/Commands/CommandManager.cs
Assembly Workspace
- Assembly Lists
ICSharpCode.ILSpyX/AssemblyListManager.cs - Bookmark Manager
ILSpy/Bookmarks/BookmarkManager.cs - Assembly Comparison
ILSpy/CompareEngine.cs - Bookmark Storage
Decompiler Engines
- Metadata Explorer
ICSharpCode.Decompiler - Decompiler Core
ICSharpCode.Decompiler - Syntax Transforms
ICSharpCode.Decompiler/CSharp/Transforms/IntroduceQueryExpressions.cs - BAML Reader
ICSharpCode.BamlDecompiler/Baml/BamlReader.cs - XAML Decompiler
ICSharpCode.BamlDecompiler/XamlDecompiler.cs - Rewrite Passes
ICSharpCode.BamlDecompiler/Rewrite
Results Presentation
- C# Output
- Project Output
ICSharpCode.Decompiler - XAML Output
- Theme Manager
ILSpy/Themes/ThemeManager.cs - Code Editor
ILSpy
Other components
- User
Connections 18
- User → Desktop UI: opens assembly
- User → PowerShell Cmdlets: runs cmdlet
- Desktop UI → Assembly Lists: loads assemblies
- Desktop UI → Command Routing: routes commands
- Desktop UI → Decompiler Core: requests decompilation
- Desktop UI → BAML Reader: requests BAML
- Desktop UI → Assembly Comparison: starts comparison
- Desktop UI → Bookmark Manager: manages bookmarks
- Assembly Lists → Metadata Explorer: opens metadata
- Assembly Comparison → Metadata Explorer: reads metadata
- Decompiler Core → Syntax Transforms: applies transforms
- Decompiler Core → C# Output: emits C#
- Decompiler Core → Project Output: emits project
- BAML Reader → XAML Decompiler: parses BAML
- XAML Decompiler → Rewrite Passes: rewrites markup
- XAML Decompiler → XAML Output: emits XAML
- Theme Manager → Code Editor: updates colors
- Bookmark Manager → Bookmark Storage: persists JSON