├── .editorconfig ├── .gitattributes ├── .github └── workflows │ └── publish.yml ├── .gitignore ├── App.razor ├── AssemblyResolver.cs ├── Compressor.cs ├── Constants.cs ├── DecompilationDiffer.csproj ├── DecompilationDiffer.sln ├── LICENSE.txt ├── Pages └── Index.razor ├── Program.cs ├── Properties └── launchSettings.json ├── README.md ├── Runner.cs ├── Shared └── MainLayout.razor ├── _Imports.razor ├── assets ├── bulb.png └── sourcegendev.gif ├── version.json └── wwwroot ├── .nojekyll ├── css ├── app.css ├── bootstrap │ ├── bootstrap.min.css │ └── bootstrap.min.css.map └── open-iconic │ ├── FONT-LICENSE │ ├── ICON-LICENSE │ ├── README.md │ └── font │ ├── css │ └── open-iconic-bootstrap.min.css │ └── fonts │ ├── open-iconic.eot │ ├── open-iconic.otf │ ├── open-iconic.svg │ ├── open-iconic.ttf │ └── open-iconic.woff ├── favicon.png └── index.html /.editorconfig: -------------------------------------------------------------------------------- 1 | # EditorConfig is awesome:http://EditorConfig.org 2 | 3 | # top-most EditorConfig file 4 | root = true 5 | 6 | # Don't use tabs for indentation. 7 | [*] 8 | indent_style = space 9 | 10 | # Code files 11 | [*.cs] 12 | indent_size = 4 13 | insert_final_newline = true 14 | charset = utf-8-bom 15 | 16 | # Xml project files 17 | [*.csproj] 18 | indent_size = 2 19 | 20 | # Xml config files 21 | [*.{props,targets}] 22 | indent_size = 2 23 | 24 | # Dotnet code style settings: 25 | [*.cs] 26 | # Sort using and Import directives with System.* appearing first 27 | dotnet_sort_system_directives_first = true 28 | dotnet_style_require_accessibility_modifiers = always:warning 29 | 30 | # No blank line between System.* and Microsoft.* 31 | dotnet_separate_import_directive_groups = false 32 | 33 | # Suggest more modern language features when available 34 | dotnet_style_object_initializer = true:suggestion 35 | dotnet_style_collection_initializer = true:suggestion 36 | dotnet_style_coalesce_expression = true:error 37 | dotnet_style_null_propagation = true:error 38 | dotnet_style_explicit_tuple_names = true:suggestion 39 | dotnet_style_prefer_inferred_tuple_names = true:suggestion 40 | dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion 41 | dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion 42 | dotnet_style_prefer_conditional_expression_over_return = false 43 | dotnet_style_prefer_conditional_expression_over_assignment = false 44 | dotnet_style_prefer_auto_properties = false 45 | 46 | # Avoid "this." and "Me." if not necessary 47 | dotnet_style_qualification_for_field = false:error 48 | dotnet_style_qualification_for_property = true:error 49 | dotnet_style_qualification_for_method = false:error 50 | dotnet_style_qualification_for_event = false:error 51 | 52 | # Use language keywords instead of framework type names for type references 53 | dotnet_style_predefined_type_for_locals_parameters_members = true:error 54 | dotnet_style_predefined_type_for_member_access = true:error 55 | 56 | # Prefer read-only on fields 57 | dotnet_style_readonly_field = true:warning 58 | 59 | # Naming Rules 60 | dotnet_naming_rule.interfaces_must_be_pascal_cased_and_prefixed_with_I.symbols = interface_symbols 61 | dotnet_naming_rule.interfaces_must_be_pascal_cased_and_prefixed_with_I.style = pascal_case_and_prefix_with_I_style 62 | dotnet_naming_rule.interfaces_must_be_pascal_cased_and_prefixed_with_I.severity = warning 63 | 64 | dotnet_naming_rule.externally_visible_members_must_be_pascal_cased.symbols = externally_visible_symbols 65 | dotnet_naming_rule.externally_visible_members_must_be_pascal_cased.style = pascal_case_style 66 | dotnet_naming_rule.externally_visible_members_must_be_pascal_cased.severity = warning 67 | 68 | dotnet_naming_rule.parameters_must_be_camel_cased.symbols = parameter_symbols 69 | dotnet_naming_rule.parameters_must_be_camel_cased.style = camel_case_style 70 | dotnet_naming_rule.parameters_must_be_camel_cased.severity = warning 71 | 72 | dotnet_naming_rule.constants_must_be_pascal_cased.symbols = constant_symbols 73 | dotnet_naming_rule.constants_must_be_pascal_cased.style = pascal_case_style 74 | dotnet_naming_rule.constants_must_be_pascal_cased.severity = warning 75 | 76 | dotnet_naming_rule.private_static_fields_must_be_camel_cased_and_prefixed_with_s_underscore.symbols = private_static_field_symbols 77 | dotnet_naming_rule.private_static_fields_must_be_camel_cased_and_prefixed_with_s_underscore.style = camel_case_and_prefix_with_s_underscore_style 78 | dotnet_naming_rule.private_static_fields_must_be_camel_cased_and_prefixed_with_s_underscore.severity = warning 79 | 80 | dotnet_naming_rule.private_instance_fields_must_be_camel_cased_and_prefixed_with_underscore.symbols = private_field_symbols 81 | dotnet_naming_rule.private_instance_fields_must_be_camel_cased_and_prefixed_with_underscore.style = camel_case_and_prefix_with_underscore_style 82 | dotnet_naming_rule.private_instance_fields_must_be_camel_cased_and_prefixed_with_underscore.severity = warning 83 | 84 | # Symbols 85 | dotnet_naming_symbols.externally_visible_symbols.applicable_kinds = class,struct,interface,enum,property,method,field,event,delegate 86 | dotnet_naming_symbols.externally_visible_symbols.applicable_accessibilities = public,internal,friend,protected,protected_internal,protected_friend,private_protected 87 | 88 | dotnet_naming_symbols.interface_symbols.applicable_kinds = interface 89 | dotnet_naming_symbols.interface_symbols.applicable_accessibilities = * 90 | 91 | dotnet_naming_symbols.parameter_symbols.applicable_kinds = parameter 92 | dotnet_naming_symbols.parameter_symbols.applicable_accessibilities = * 93 | 94 | dotnet_naming_symbols.constant_symbols.applicable_kinds = field 95 | dotnet_naming_symbols.constant_symbols.required_modifiers = const 96 | dotnet_naming_symbols.constant_symbols.applicable_accessibilities = * 97 | 98 | dotnet_naming_symbols.private_static_field_symbols.applicable_kinds = field 99 | dotnet_naming_symbols.private_static_field_symbols.required_modifiers = static,shared 100 | dotnet_naming_symbols.private_static_field_symbols.applicable_accessibilities = private 101 | 102 | dotnet_naming_symbols.private_field_symbols.applicable_kinds = field 103 | dotnet_naming_symbols.private_field_symbols.applicable_accessibilities = private 104 | 105 | # Styles 106 | dotnet_naming_style.camel_case_style.capitalization = camel_case 107 | 108 | dotnet_naming_style.pascal_case_style.capitalization = pascal_case 109 | 110 | dotnet_naming_style.camel_case_and_prefix_with_s_underscore_style.required_prefix = s_ 111 | dotnet_naming_style.camel_case_and_prefix_with_s_underscore_style.capitalization = camel_case 112 | 113 | dotnet_naming_style.camel_case_and_prefix_with_underscore_style.required_prefix = _ 114 | dotnet_naming_style.camel_case_and_prefix_with_underscore_style.capitalization = camel_case 115 | 116 | dotnet_naming_style.pascal_case_and_prefix_with_I_style.required_prefix = I 117 | dotnet_naming_style.pascal_case_and_prefix_with_I_style.capitalization = pascal_case 118 | 119 | # CSharp code style settings: 120 | # Prefer "var" only when the type is apparent 121 | csharp_style_var_for_built_in_types = false:suggestion 122 | csharp_style_var_when_type_is_apparent = true:suggestion 123 | csharp_style_var_elsewhere = false:suggestion 124 | 125 | # Prefer method-like constructs to have a block body 126 | csharp_style_expression_bodied_methods = false:none 127 | csharp_style_expression_bodied_constructors = false:none 128 | csharp_style_expression_bodied_operators = false:none 129 | 130 | # Prefer property-like constructs to have an expression-body 131 | csharp_style_expression_bodied_properties = true:none 132 | csharp_style_expression_bodied_indexers = true:none 133 | csharp_style_expression_bodied_accessors = true:none 134 | 135 | # Suggest more modern language features when available 136 | csharp_style_pattern_matching_over_is_with_cast_check = true:error 137 | csharp_style_pattern_matching_over_as_with_null_check = true:error 138 | csharp_style_inlined_variable_declaration = true:error 139 | csharp_style_throw_expression = true:suggestion 140 | csharp_style_conditional_delegate_call = true:suggestion 141 | csharp_style_deconstructed_variable_declaration = true:suggestion 142 | 143 | # Newline settings 144 | csharp_new_line_before_open_brace = all 145 | csharp_new_line_before_else = true 146 | csharp_new_line_before_catch = true 147 | csharp_new_line_before_finally = true 148 | csharp_new_line_before_members_in_object_initializers = true 149 | csharp_new_line_before_members_in_anonymous_types = true 150 | csharp_new_line_between_query_expression_clauses = true 151 | 152 | # Identation options 153 | csharp_indent_case_contents = true 154 | csharp_indent_case_contents_when_block = true 155 | csharp_indent_switch_labels = true 156 | csharp_indent_labels = no_change 157 | csharp_indent_block_contents = true 158 | csharp_indent_braces = false 159 | 160 | # Spacing options 161 | csharp_space_after_cast = false 162 | csharp_space_after_keywords_in_control_flow_statements = true 163 | csharp_space_between_method_call_empty_parameter_list_parentheses = false 164 | csharp_space_between_method_call_parameter_list_parentheses = false 165 | csharp_space_between_method_call_name_and_opening_parenthesis = false 166 | csharp_space_between_method_declaration_parameter_list_parentheses = false 167 | csharp_space_between_method_declaration_empty_parameter_list_parentheses = false 168 | csharp_space_between_method_declaration_parameter_list_parentheses = false 169 | csharp_space_between_method_declaration_name_and_open_parenthesis = false 170 | csharp_space_between_parentheses = false 171 | csharp_space_between_square_brackets = false 172 | csharp_space_between_empty_square_brackets = false 173 | csharp_space_before_open_square_brackets = false 174 | csharp_space_around_declaration_statements = false 175 | csharp_space_around_binary_operators = before_and_after 176 | csharp_space_after_cast = false 177 | csharp_space_before_semicolon_in_for_statement = false 178 | csharp_space_before_dot = false 179 | csharp_space_after_dot = false 180 | csharp_space_before_comma = false 181 | csharp_space_after_comma = true 182 | csharp_space_before_colon_in_inheritance_clause = true 183 | csharp_space_after_colon_in_inheritance_clause = true 184 | csharp_space_after_semicolon_in_for_statement = true 185 | 186 | # Wrapping 187 | csharp_preserve_single_line_statements = true 188 | csharp_preserve_single_line_blocks = true 189 | 190 | # Code block 191 | csharp_prefer_braces = when_multiline:error 192 | 193 | # CA1303: Do not pass literals as localized parameters 194 | dotnet_diagnostic.CA1303.severity = none 195 | 196 | # CA1812: GameBoard is an internal class that is apparently never instantiated. If so, remove the code from the assembly. If this class is intended to contain only static members, make it static (Shared in Visual Basic). 197 | dotnet_diagnostic.CA1812.severity = none 198 | 199 | # CA1707: Identifiers should not contain underscores 200 | dotnet_diagnostic.CA1707.severity = none 201 | 202 | # CA1062: Validate arguments of public methods 203 | dotnet_diagnostic.CA1062.severity = none 204 | 205 | # IDE0005: Using directive is unnecessary. 206 | dotnet_diagnostic.IDE0005.severity = error 207 | 208 | # CA1710: Identifiers should have correct suffix 209 | dotnet_diagnostic.CA1710.severity = none 210 | 211 | # Don't use keywords 212 | dotnet_diagnostic.CA1716.severity = none 213 | 214 | # CA1063: Implement IDisposable Correctly 215 | dotnet_diagnostic.CA1063.severity = none 216 | 217 | # CA1816: Dispose methods should call SuppressFinalize 218 | dotnet_diagnostic.CA1816.severity = none 219 | 220 | # CA1305: Specify IFormatProvider 221 | dotnet_diagnostic.CA1305.severity = none 222 | 223 | # CA1308: Normalize strings to uppercase 224 | dotnet_diagnostic.CA1308.severity = none 225 | 226 | # IDE0054: Use compound assignment 227 | dotnet_style_prefer_compound_assignment = false:suggestion 228 | 229 | # CA1307: Specify StringComparison 230 | dotnet_diagnostic.CA1307.severity = none 231 | 232 | # CA1030: Use events where appropriate 233 | dotnet_diagnostic.CA1030.severity = none 234 | 235 | # CA1724: Type names should not match namespaces 236 | dotnet_diagnostic.CA1724.severity = none 237 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Set default behavior to automatically normalize line endings. 3 | ############################################################################### 4 | * text=auto 5 | 6 | ############################################################################### 7 | # Set default behavior for command prompt diff. 8 | # 9 | # This is need for earlier builds of msysgit that does not have it on by 10 | # default for csharp files. 11 | # Note: This is only used by command line 12 | ############################################################################### 13 | #*.cs diff=csharp 14 | 15 | ############################################################################### 16 | # Set the merge driver for project and solution files 17 | # 18 | # Merging from the command prompt will add diff markers to the files if there 19 | # are conflicts (Merging from VS is not affected by the settings below, in VS 20 | # the diff markers are never inserted). Diff markers may cause the following 21 | # file extensions to fail to load in VS. An alternative would be to treat 22 | # these files as binary and thus will always conflict and require user 23 | # intervention with every merge. To do so, just uncomment the entries below 24 | ############################################################################### 25 | #*.sln merge=binary 26 | #*.csproj merge=binary 27 | #*.vbproj merge=binary 28 | #*.vcxproj merge=binary 29 | #*.vcproj merge=binary 30 | #*.dbproj merge=binary 31 | #*.fsproj merge=binary 32 | #*.lsproj merge=binary 33 | #*.wixproj merge=binary 34 | #*.modelproj merge=binary 35 | #*.sqlproj merge=binary 36 | #*.wwaproj merge=binary 37 | 38 | ############################################################################### 39 | # behavior for image files 40 | # 41 | # image files are treated as binary by default. 42 | ############################################################################### 43 | #*.jpg binary 44 | #*.png binary 45 | #*.gif binary 46 | 47 | ############################################################################### 48 | # diff behavior for common document formats 49 | # 50 | # Convert binary document formats to text before diffing them. This feature 51 | # is only available from the command line. Turn it on by uncommenting the 52 | # entries below. 53 | ############################################################################### 54 | #*.doc diff=astextplain 55 | #*.DOC diff=astextplain 56 | #*.docx diff=astextplain 57 | #*.DOCX diff=astextplain 58 | #*.dot diff=astextplain 59 | #*.DOT diff=astextplain 60 | #*.pdf diff=astextplain 61 | #*.PDF diff=astextplain 62 | #*.rtf diff=astextplain 63 | #*.RTF diff=astextplain 64 | -------------------------------------------------------------------------------- /.github/workflows/publish.yml: -------------------------------------------------------------------------------- 1 | name: DeployToGitHubPages 2 | 3 | on: 4 | push: 5 | branches: [ main ] 6 | 7 | jobs: 8 | build: 9 | runs-on: ubuntu-latest 10 | steps: 11 | - uses: actions/checkout@v2 12 | with: 13 | fetch-depth: 0 # avoid shallow clone so nbgv can do its work. 14 | 15 | - name: Publish app 16 | run: dotnet publish -c Release 17 | 18 | - name: GitHub Pages 19 | if: success() 20 | uses: crazy-max/ghaction-github-pages@v2.2.0 21 | with: 22 | target_branch: gh-pages 23 | build_dir: bin/Release/net8.0/publish/wwwroot 24 | env: 25 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 26 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | ## 4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore 5 | 6 | # User-specific files 7 | *.rsuser 8 | *.suo 9 | *.user 10 | *.userosscache 11 | *.sln.docstates 12 | 13 | # User-specific files (MonoDevelop/Xamarin Studio) 14 | *.userprefs 15 | 16 | # Build results 17 | [Dd]ebug/ 18 | [Dd]ebugPublic/ 19 | [Rr]elease/ 20 | [Rr]eleases/ 21 | x64/ 22 | x86/ 23 | [Aa][Rr][Mm]/ 24 | [Aa][Rr][Mm]64/ 25 | bld/ 26 | [Bb]in/ 27 | [Oo]bj/ 28 | [Ll]og/ 29 | 30 | # Visual Studio 2015/2017 cache/options directory 31 | .vs/ 32 | # Uncomment if you have tasks that create the project's static files in wwwroot 33 | #wwwroot/ 34 | 35 | # Visual Studio 2017 auto generated files 36 | Generated\ Files/ 37 | 38 | # MSTest test Results 39 | [Tt]est[Rr]esult*/ 40 | [Bb]uild[Ll]og.* 41 | 42 | # NUNIT 43 | *.VisualState.xml 44 | TestResult.xml 45 | 46 | # Build Results of an ATL Project 47 | [Dd]ebugPS/ 48 | [Rr]eleasePS/ 49 | dlldata.c 50 | 51 | # Benchmark Results 52 | BenchmarkDotNet.Artifacts/ 53 | 54 | # .NET Core 55 | project.lock.json 56 | project.fragment.lock.json 57 | artifacts/ 58 | 59 | # StyleCop 60 | StyleCopReport.xml 61 | 62 | # Files built by Visual Studio 63 | *_i.c 64 | *_p.c 65 | *_h.h 66 | *.ilk 67 | *.meta 68 | *.obj 69 | *.iobj 70 | *.pch 71 | *.pdb 72 | *.ipdb 73 | *.pgc 74 | *.pgd 75 | *.rsp 76 | *.sbr 77 | *.tlb 78 | *.tli 79 | *.tlh 80 | *.tmp 81 | *.tmp_proj 82 | *_wpftmp.csproj 83 | *.log 84 | *.vspscc 85 | *.vssscc 86 | .builds 87 | *.pidb 88 | *.svclog 89 | *.scc 90 | 91 | # Chutzpah Test files 92 | _Chutzpah* 93 | 94 | # Visual C++ cache files 95 | ipch/ 96 | *.aps 97 | *.ncb 98 | *.opendb 99 | *.opensdf 100 | *.sdf 101 | *.cachefile 102 | *.VC.db 103 | *.VC.VC.opendb 104 | 105 | # Visual Studio profiler 106 | *.psess 107 | *.vsp 108 | *.vspx 109 | *.sap 110 | 111 | # Visual Studio Trace Files 112 | *.e2e 113 | 114 | # TFS 2012 Local Workspace 115 | $tf/ 116 | 117 | # Guidance Automation Toolkit 118 | *.gpState 119 | 120 | # ReSharper is a .NET coding add-in 121 | _ReSharper*/ 122 | *.[Rr]e[Ss]harper 123 | *.DotSettings.user 124 | 125 | # JustCode is a .NET coding add-in 126 | .JustCode 127 | 128 | # TeamCity is a build add-in 129 | _TeamCity* 130 | 131 | # DotCover is a Code Coverage Tool 132 | *.dotCover 133 | 134 | # AxoCover is a Code Coverage Tool 135 | .axoCover/* 136 | !.axoCover/settings.json 137 | 138 | # Visual Studio code coverage results 139 | *.coverage 140 | *.coveragexml 141 | 142 | # NCrunch 143 | _NCrunch_* 144 | .*crunch*.local.xml 145 | nCrunchTemp_* 146 | 147 | # MightyMoose 148 | *.mm.* 149 | AutoTest.Net/ 150 | 151 | # Web workbench (sass) 152 | .sass-cache/ 153 | 154 | # Installshield output folder 155 | [Ee]xpress/ 156 | 157 | # DocProject is a documentation generator add-in 158 | DocProject/buildhelp/ 159 | DocProject/Help/*.HxT 160 | DocProject/Help/*.HxC 161 | DocProject/Help/*.hhc 162 | DocProject/Help/*.hhk 163 | DocProject/Help/*.hhp 164 | DocProject/Help/Html2 165 | DocProject/Help/html 166 | 167 | # Click-Once directory 168 | publish/ 169 | 170 | # Publish Web Output 171 | *.[Pp]ublish.xml 172 | *.azurePubxml 173 | # Note: Comment the next line if you want to checkin your web deploy settings, 174 | # but database connection strings (with potential passwords) will be unencrypted 175 | *.pubxml 176 | *.publishproj 177 | 178 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 179 | # checkin your Azure Web App publish settings, but sensitive information contained 180 | # in these scripts will be unencrypted 181 | PublishScripts/ 182 | 183 | # NuGet Packages 184 | *.nupkg 185 | # The packages folder can be ignored because of Package Restore 186 | **/[Pp]ackages/* 187 | # except build/, which is used as an MSBuild target. 188 | !**/[Pp]ackages/build/ 189 | # Uncomment if necessary however generally it will be regenerated when needed 190 | #!**/[Pp]ackages/repositories.config 191 | # NuGet v3's project.json files produces more ignorable files 192 | *.nuget.props 193 | *.nuget.targets 194 | 195 | # Microsoft Azure Build Output 196 | csx/ 197 | *.build.csdef 198 | 199 | # Microsoft Azure Emulator 200 | ecf/ 201 | rcf/ 202 | 203 | # Windows Store app package directories and files 204 | AppPackages/ 205 | BundleArtifacts/ 206 | Package.StoreAssociation.xml 207 | _pkginfo.txt 208 | *.appx 209 | 210 | # Visual Studio cache files 211 | # files ending in .cache can be ignored 212 | *.[Cc]ache 213 | # but keep track of directories ending in .cache 214 | !?*.[Cc]ache/ 215 | 216 | # Others 217 | ClientBin/ 218 | ~$* 219 | *~ 220 | *.dbmdl 221 | *.dbproj.schemaview 222 | *.jfm 223 | *.pfx 224 | *.publishsettings 225 | orleans.codegen.cs 226 | 227 | # Including strong name files can present a security risk 228 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 229 | #*.snk 230 | 231 | # Since there are multiple workflows, uncomment next line to ignore bower_components 232 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 233 | #bower_components/ 234 | 235 | # RIA/Silverlight projects 236 | Generated_Code/ 237 | 238 | # Backup & report files from converting an old project file 239 | # to a newer Visual Studio version. Backup files are not needed, 240 | # because we have git ;-) 241 | _UpgradeReport_Files/ 242 | Backup*/ 243 | UpgradeLog*.XML 244 | UpgradeLog*.htm 245 | ServiceFabricBackup/ 246 | *.rptproj.bak 247 | 248 | # SQL Server files 249 | *.mdf 250 | *.ldf 251 | *.ndf 252 | 253 | # Business Intelligence projects 254 | *.rdl.data 255 | *.bim.layout 256 | *.bim_*.settings 257 | *.rptproj.rsuser 258 | *- Backup*.rdl 259 | 260 | # Microsoft Fakes 261 | FakesAssemblies/ 262 | 263 | # GhostDoc plugin setting file 264 | *.GhostDoc.xml 265 | 266 | # Node.js Tools for Visual Studio 267 | .ntvs_analysis.dat 268 | node_modules/ 269 | 270 | # Visual Studio 6 build log 271 | *.plg 272 | 273 | # Visual Studio 6 workspace options file 274 | *.opt 275 | 276 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 277 | *.vbw 278 | 279 | # Visual Studio LightSwitch build output 280 | **/*.HTMLClient/GeneratedArtifacts 281 | **/*.DesktopClient/GeneratedArtifacts 282 | **/*.DesktopClient/ModelManifest.xml 283 | **/*.Server/GeneratedArtifacts 284 | **/*.Server/ModelManifest.xml 285 | _Pvt_Extensions 286 | 287 | # Paket dependency manager 288 | .paket/paket.exe 289 | paket-files/ 290 | 291 | # FAKE - F# Make 292 | .fake/ 293 | 294 | # JetBrains Rider 295 | .idea/ 296 | *.sln.iml 297 | 298 | # CodeRush personal settings 299 | .cr/personal 300 | 301 | # Python Tools for Visual Studio (PTVS) 302 | __pycache__/ 303 | *.pyc 304 | 305 | # Cake - Uncomment if you are using it 306 | # tools/** 307 | # !tools/packages.config 308 | 309 | # Tabs Studio 310 | *.tss 311 | 312 | # Telerik's JustMock configuration file 313 | *.jmconfig 314 | 315 | # BizTalk build output 316 | *.btp.cs 317 | *.btm.cs 318 | *.odx.cs 319 | *.xsd.cs 320 | 321 | # OpenCover UI analysis results 322 | OpenCover/ 323 | 324 | # Azure Stream Analytics local run output 325 | ASALocalRun/ 326 | 327 | # MSBuild Binary and Structured Log 328 | *.binlog 329 | 330 | # NVidia Nsight GPU debugger configuration file 331 | *.nvuser 332 | 333 | # MFractors (Xamarin productivity tool) working folder 334 | .mfractor/ 335 | 336 | # Local History for Visual Studio 337 | .localhistory/ 338 | 339 | # BeatPulse healthcheck temp database 340 | healthchecksdb 341 | 342 | 343 | -------------------------------------------------------------------------------- /App.razor: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Sorry, there's nothing at this address. 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /AssemblyResolver.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.IO; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using Basic.Reference.Assemblies; 6 | using ICSharpCode.Decompiler.Metadata; 7 | 8 | namespace DecompilationDiffer; 9 | 10 | internal class AssemblyResolver : IAssemblyResolver 11 | { 12 | private readonly List _peFiles; 13 | private readonly List _streams; 14 | 15 | public AssemblyResolver() 16 | { 17 | _peFiles = []; 18 | _streams = []; 19 | foreach (var reference in Net80.ReferenceInfos.All) 20 | { 21 | var stream = new MemoryStream(reference.ImageBytes); 22 | _peFiles.Add(new PEFile(reference.FileName, stream)); 23 | stream.Seek(0, SeekOrigin.Begin); 24 | _streams.Add(stream); 25 | } 26 | } 27 | 28 | public MetadataFile? Resolve(IAssemblyReference reference) 29 | { 30 | return _peFiles.FirstOrDefault(r => r.FullName == reference.FullName); 31 | } 32 | 33 | public Task ResolveAsync(IAssemblyReference reference) 34 | { 35 | return Task.FromResult(_peFiles.FirstOrDefault(r => r.FullName == reference.FullName) as MetadataFile); 36 | } 37 | 38 | public MetadataFile? ResolveModule(MetadataFile mainModule, string moduleName) 39 | { 40 | return null; 41 | } 42 | 43 | public Task ResolveModuleAsync(MetadataFile mainModule, string moduleName) 44 | { 45 | return Task.FromResult(null); 46 | } 47 | 48 | internal IEnumerable GetAllStreams() 49 | { 50 | return _streams; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /Compressor.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | using System.IO.Compression; 4 | using System.Text; 5 | 6 | namespace DecompilationDiffer; 7 | 8 | internal static class Compressor 9 | { 10 | private static readonly char[] s_padding = { '=' }; 11 | 12 | public static string Compress(string baseCode, string version1, string version2) 13 | { 14 | var separator = (char)7; 15 | return Compress(baseCode + separator + version1 + separator + version2); 16 | 17 | static string Compress(string input) 18 | { 19 | using var ms = new MemoryStream(); 20 | using (var compressor = new DeflateStream(ms, CompressionLevel.Optimal)) 21 | { 22 | var inputBytes = Encoding.Unicode.GetBytes(input); 23 | compressor.Write(inputBytes); 24 | } 25 | return ToBase64(ms.ToArray()); 26 | } 27 | } 28 | 29 | private static string ToBase64(byte[] input) 30 | => Convert.ToBase64String(input).TrimEnd(s_padding).Replace('+', '-').Replace('/', '_'); 31 | 32 | private static byte[] FromBase64(string input) 33 | => Convert.FromBase64String(input.Replace('_', '/').Replace('-', '+') + 34 | (input.Length % 4) switch 35 | { 36 | 0 => "", 37 | 2 => "==", 38 | 3 => "=", 39 | _ => throw new ArgumentException() 40 | }); 41 | 42 | public static string Uncompress(string slug) 43 | { 44 | try 45 | { 46 | var bytes = FromBase64(slug); 47 | 48 | using var ms = new MemoryStream(bytes); 49 | using (var compressor = new DeflateStream(ms, CompressionMode.Decompress)) 50 | using (var sr = new StreamReader(compressor, Encoding.Unicode)) 51 | { 52 | return sr.ReadToEnd(); 53 | } 54 | } 55 | catch (Exception ex) 56 | { 57 | return ex.ToString(); 58 | } 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /Constants.cs: -------------------------------------------------------------------------------- 1 | namespace DecompilationDiffer; 2 | 3 | public static class Constants 4 | { 5 | public const string InitialCode = """ 6 | using System.Collections.Generic; 7 | using System.Linq; 8 | 9 | class C 10 | { 11 | private IEnumerable _data = M(new [] {1, 2, 3}); 12 | 13 | static IEnumerable M(IEnumerable input) 14 | { 15 | return input.Select(x => x); 16 | } 17 | } 18 | """; 19 | 20 | public const string Version1Code = """ 21 | using System.Collections.Generic; 22 | using System.Linq; 23 | 24 | class C 25 | { 26 | private IEnumerable _data = M([1, 2, 3]); 27 | 28 | static IEnumerable M(IEnumerable input) 29 | { 30 | return input.Select(x => x); 31 | } 32 | } 33 | """; 34 | 35 | public const string Version2Code = """ 36 | using System.Collections.Generic; 37 | using System.Linq; 38 | 39 | class C 40 | { 41 | private IEnumerable _data = M(1, 2, 3); 42 | 43 | static IEnumerable M(params IEnumerable input) 44 | { 45 | return input.Select(x => x); 46 | } 47 | } 48 | """; 49 | } 50 | -------------------------------------------------------------------------------- /DecompilationDiffer.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net8.0 5 | preview 6 | enable 7 | 8 | 9 | https://api.nuget.org/v3/index.json; 10 | https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json; 11 | https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | all 27 | runtime; build; native; contentfiles; analyzers 28 | 29 | 30 | 31 | 32 | 33 | all 34 | runtime; build; native; contentfiles; analyzers; buildtransitive 35 | 36 | 37 | 38 | all 39 | runtime; build; native; contentfiles; analyzers; buildtransitive 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /DecompilationDiffer.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.12.35125.93 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DecompilationDiffer", "DecompilationDiffer.csproj", "{B5190CA8-0E49-4760-ACD2-E431BF32F9A5}" 7 | EndProject 8 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".github", ".github", "{13B41BC2-0E8F-42EC-A6F6-BD29F20B4183}" 9 | ProjectSection(SolutionItems) = preProject 10 | .github\workflows\publish.yml = .github\workflows\publish.yml 11 | EndProjectSection 12 | EndProject 13 | Global 14 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 15 | Debug|Any CPU = Debug|Any CPU 16 | Release|Any CPU = Release|Any CPU 17 | EndGlobalSection 18 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 19 | {B5190CA8-0E49-4760-ACD2-E431BF32F9A5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 20 | {B5190CA8-0E49-4760-ACD2-E431BF32F9A5}.Debug|Any CPU.Build.0 = Debug|Any CPU 21 | {B5190CA8-0E49-4760-ACD2-E431BF32F9A5}.Release|Any CPU.ActiveCfg = Release|Any CPU 22 | {B5190CA8-0E49-4760-ACD2-E431BF32F9A5}.Release|Any CPU.Build.0 = Release|Any CPU 23 | EndGlobalSection 24 | GlobalSection(SolutionProperties) = preSolution 25 | HideSolutionNode = FALSE 26 | EndGlobalSection 27 | GlobalSection(ExtensibilityGlobals) = postSolution 28 | SolutionGuid = {605B27E9-B040-4EAA-BCFB-B41BF28CC45B} 29 | EndGlobalSection 30 | EndGlobal 31 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 David Wengier 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Pages/Index.razor: -------------------------------------------------------------------------------- 1 | @page "/{*fragment}" 2 | @inject NavigationManager navigationManager 3 | @inject IJSRuntime jsRuntime 4 | @using System.Threading 5 | 6 | 7 | Decompilation Differ - @ThisAssembly.AssemblyInformationalVersion 8 | 9 | by @@davidwengier 10 | - GitHub 11 | 12 | 13 | 14 | 15 | Base 16 | 17 | Version 1 18 | 19 | Version 2 20 | 21 | 22 | Decompilation Diff from Base 23 | 24 | 25 | Auto 26 | 27 | 28 | Refresh 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | @code { 37 | private StandaloneCodeEditor codeEditor = null!; 38 | private StandaloneCodeEditor v1 = null!; 39 | private StandaloneCodeEditor v2 = null!; 40 | private StandaloneDiffEditor v1Diff = null!; 41 | private StandaloneDiffEditor v2Diff = null!; 42 | private bool _autoRefresh = true; 43 | private bool _syncScroll = true; 44 | private string _initialBaseCode = Constants.InitialCode; 45 | private string _initialVersion1Code = Constants.Version1Code; 46 | private string _initialVersion2Code = Constants.Version2Code; 47 | 48 | [ParameterAttribute] 49 | public string? fragment { get; set; } 50 | 51 | private StandaloneDiffEditorConstructionOptions DiffEditorConstructionOptions(StandaloneDiffEditor editor) 52 | { 53 | var options = new StandaloneDiffEditorConstructionOptions 54 | { 55 | AutomaticLayout = true, 56 | Minimap = new EditorMinimapOptions() { Enabled = false }, 57 | Folding = false, 58 | RenderSideBySide = false, 59 | IgnoreTrimWhitespace = true, 60 | OriginalEditable = false, 61 | ReadOnly = true, 62 | LineNumbers = "", 63 | Scrollbar = new EditorScrollbarOptions() { Vertical = "hidden", VerticalScrollbarSize = 0 } 64 | }; 65 | 66 | return options; 67 | } 68 | 69 | private StandaloneEditorConstructionOptions EditorConstructionOptions(StandaloneCodeEditor editor) 70 | { 71 | var options = new StandaloneEditorConstructionOptions 72 | { 73 | AutomaticLayout = true, 74 | Language = "csharp", 75 | Minimap = new EditorMinimapOptions() { Enabled = false }, 76 | Folding = false, 77 | }; 78 | 79 | if (editor == codeEditor) 80 | { 81 | var uri = navigationManager.ToAbsoluteUri(navigationManager.Uri); 82 | var slug = uri.Fragment.TrimStart('#'); 83 | if (!string.IsNullOrWhiteSpace(slug)) 84 | { 85 | var uncompressed = Compressor.Uncompress(slug); 86 | _initialVersion1Code = "Error reading URL:\n\n" + uncompressed; 87 | var bits = uncompressed.Split((char)7); 88 | if (bits.Length == 3) 89 | { 90 | _initialBaseCode = bits[0]; 91 | _initialVersion1Code = bits[1]; 92 | _initialVersion2Code = bits[2]; 93 | } 94 | } 95 | 96 | options.Value = _initialBaseCode; 97 | } 98 | else if (editor == v1) 99 | { 100 | options.Value = _initialVersion1Code; 101 | } 102 | else if (editor == v2) 103 | { 104 | options.Value = _initialVersion2Code; 105 | 106 | _ = Update(default); 107 | } 108 | 109 | return options; 110 | } 111 | 112 | private CancellationTokenSource _typingCancellationSource = new CancellationTokenSource(); 113 | 114 | private Task Refresh() 115 | { 116 | return Update(default); 117 | } 118 | 119 | private async Task OnKeyUp(KeyboardEvent keyboardEvent) 120 | { 121 | // ignore arrow keys 122 | if (keyboardEvent.KeyCode == KeyCode.LeftArrow || 123 | keyboardEvent.KeyCode == KeyCode.RightArrow || 124 | keyboardEvent.KeyCode == KeyCode.UpArrow || 125 | keyboardEvent.KeyCode == KeyCode.DownArrow || 126 | keyboardEvent.KeyCode == KeyCode.PageUp || 127 | keyboardEvent.KeyCode == KeyCode.PageDown) 128 | { 129 | return; 130 | } 131 | 132 | var baseCode = await codeEditor.GetValue(); 133 | var version1 = await v1.GetValue(); 134 | var version2 = await v2.GetValue(); 135 | 136 | var slug = Compressor.Compress(baseCode, version1, version2); 137 | navigationManager.NavigateTo(navigationManager.BaseUri + "#" + slug, forceLoad: false); 138 | 139 | if (!_autoRefresh) 140 | { 141 | return; 142 | } 143 | 144 | _typingCancellationSource.Cancel(); 145 | _typingCancellationSource = new CancellationTokenSource(); 146 | await Update(_typingCancellationSource.Token); 147 | } 148 | 149 | private async Task Update(CancellationToken cancellationToken) 150 | { 151 | 152 | await Task.Delay(500, cancellationToken); 153 | 154 | if (cancellationToken.IsCancellationRequested) 155 | { 156 | return; 157 | } 158 | 159 | var tempModel = await Global.CreateModel(jsRuntime, "Compiling and Decompiling...", "txt"); 160 | 161 | await v1Diff.SetModel(new DiffEditorModel 162 | { 163 | Original = tempModel, 164 | Modified = tempModel 165 | }); 166 | 167 | var baseCode = await codeEditor.GetValue(); 168 | var version1 = await v1.GetValue(); 169 | var version2 = await v2.GetValue(); 170 | 171 | var runner = new Runner(baseCode, version1, version2); 172 | 173 | runner.Run(); 174 | 175 | 176 | var baseOutput = runner.BaseOutput; 177 | var version1Output = runner.Version1Output; 178 | var version2Output = runner.Version2Output; 179 | 180 | if (baseOutput.StartsWith("Error")) 181 | { 182 | var originalModel = await Global.CreateModel(jsRuntime, baseOutput, "txt"); 183 | var modifiedModel = await Global.CreateModel(jsRuntime, baseOutput, "txt"); 184 | 185 | await v1Diff.SetModel(new DiffEditorModel 186 | { 187 | Original = originalModel, 188 | Modified = modifiedModel 189 | }); 190 | originalModel = await Global.CreateModel(jsRuntime, "", "txt"); 191 | modifiedModel = await Global.CreateModel(jsRuntime, "", "txt"); 192 | 193 | await v2Diff.SetModel(new DiffEditorModel 194 | { 195 | Original = originalModel, 196 | Modified = modifiedModel 197 | }); 198 | } 199 | else 200 | { 201 | var lang = version1Output.StartsWith("Error") ? "txt" : "csharp"; 202 | var originalModel = await Global.CreateModel(jsRuntime, version1Output.StartsWith("Error") ? version1Output : baseOutput, lang); 203 | var modifiedModel = await Global.CreateModel(jsRuntime, version1Output, lang); 204 | 205 | await v1Diff.SetModel(new DiffEditorModel 206 | { 207 | Original = originalModel, 208 | Modified = modifiedModel 209 | }); 210 | 211 | lang = version2Output.StartsWith("Error") ? "txt" : "csharp"; 212 | originalModel = await Global.CreateModel(jsRuntime, version2Output.StartsWith("Error") ? version2Output : baseOutput, lang); 213 | modifiedModel = await Global.CreateModel(jsRuntime, version2Output, lang); 214 | 215 | await v2Diff.SetModel(new DiffEditorModel 216 | { 217 | Original = originalModel, 218 | Modified = modifiedModel 219 | }); 220 | } 221 | 222 | _syncScroll = !baseOutput.StartsWith("Error") && !version1Output.StartsWith("Error") && !version2Output.StartsWith("Error"); 223 | } 224 | 225 | private void ScrollV1(ScrollEvent eventArgs) 226 | { 227 | if (_syncScroll) 228 | { 229 | v2Diff.ModifiedEditor.SetScrollTop(Convert.ToInt32(eventArgs.ScrollTop)); 230 | } 231 | } 232 | 233 | private void ScrollV2(ScrollEvent eventArgs) 234 | { 235 | if (_syncScroll) 236 | { 237 | v1Diff.ModifiedEditor.SetScrollTop(Convert.ToInt32(eventArgs.ScrollTop)); 238 | } 239 | } 240 | } 241 | -------------------------------------------------------------------------------- /Program.cs: -------------------------------------------------------------------------------- 1 | using System.Threading.Tasks; 2 | using BlazorMonaco.Editor; 3 | using Microsoft.AspNetCore.Components.WebAssembly.Hosting; 4 | 5 | namespace DecompilationDiffer; 6 | 7 | public class Program 8 | { 9 | public static async Task Main(string[] args) 10 | { 11 | var x = new Editor(); 12 | 13 | 14 | var builder = WebAssemblyHostBuilder.CreateDefault(args); 15 | builder.RootComponents.Add("#app"); 16 | 17 | await builder.Build().RunAsync(); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "iisSettings": { 3 | "windowsAuthentication": false, 4 | "anonymousAuthentication": true, 5 | "iisExpress": { 6 | "applicationUrl": "http://localhost:65202", 7 | "sslPort": 44381 8 | } 9 | }, 10 | "profiles": { 11 | "IIS Express": { 12 | "commandName": "IISExpress", 13 | "launchBrowser": true, 14 | "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}", 15 | "environmentVariables": { 16 | "ASPNETCORE_ENVIRONMENT": "Development" 17 | } 18 | }, 19 | "DecompilationDiffer": { 20 | "commandName": "Project", 21 | "launchBrowser": true, 22 | "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}", 23 | "applicationUrl": "https://localhost:5001;http://localhost:5000", 24 | "environmentVariables": { 25 | "ASPNETCORE_ENVIRONMENT": "Development" 26 | } 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Decompilation Differ 2 | 3 | [](https://choosealicense.com/licenses/mit/) 4 | [](https://github.com/davidwengier/DecompilationDiffer/actions?query=workflow%3ADeployToGitHubPages) 5 | [](https://discord.gg/Yt5B58b) 6 | 7 | ### Compiles code, then decompiles it, then shows you what changed. 8 | 9 | A fun way to explore what the C# compiler does to your code when it compiles it, either how it lowers it, or how it synthesizes things. Enter a baseline, and a couple of variations, and see the results compared in a diff view. 10 | 11 | # Try it live: https://wengier.com/DecompilationDiffer -------------------------------------------------------------------------------- /Runner.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Linq; 5 | using Basic.Reference.Assemblies; 6 | using ICSharpCode.Decompiler; 7 | using ICSharpCode.Decompiler.Metadata; 8 | using Microsoft.CodeAnalysis; 9 | using Microsoft.CodeAnalysis.CSharp; 10 | using Microsoft.CodeAnalysis.CSharp.Syntax; 11 | 12 | namespace DecompilationDiffer; 13 | 14 | internal class Runner 15 | { 16 | private readonly DecompilerSettings _decompilerSettings = new DecompilerSettings(ICSharpCode.Decompiler.CSharp.LanguageVersion.CSharp1) 17 | { 18 | ArrayInitializers = false, 19 | AutomaticEvents = false, 20 | DecimalConstants = false, 21 | FixedBuffers = false, 22 | UsingStatement = false, 23 | SwitchStatementOnString = false, 24 | LockStatement = false, 25 | ForStatement = false, 26 | ForEachStatement = false, 27 | SparseIntegerSwitch = false, 28 | DoWhileStatement = false, 29 | StringConcat = false, 30 | UseRefLocalsForAccurateOrderOfEvaluation = true, 31 | InitAccessors = true, 32 | FunctionPointers = true, 33 | NativeIntegers = true 34 | }; 35 | 36 | private static AssemblyResolver? s_assemblyResolver; 37 | private readonly string _baseCode; 38 | private readonly string _version1; 39 | private readonly string _version2; 40 | 41 | public string BaseOutput { get; private set; } = ""; 42 | public string Version1Output { get; private set; } = ""; 43 | public string Version2Output { get; private set; } = ""; 44 | 45 | public Runner(string baseCode, string version1, string version2) 46 | { 47 | _baseCode = baseCode; 48 | _version1 = version1; 49 | _version2 = version2; 50 | } 51 | 52 | internal void Run() 53 | { 54 | try 55 | { 56 | if (s_assemblyResolver == null) 57 | { 58 | s_assemblyResolver = new AssemblyResolver(); 59 | } 60 | 61 | this.BaseOutput = ""; 62 | this.Version1Output = ""; 63 | this.Version2Output = ""; 64 | 65 | this.BaseOutput = CompileAndDecompile(_baseCode, "base"); 66 | this.Version1Output = CompileAndDecompile(_version1, "version 1"); 67 | this.Version2Output = CompileAndDecompile(_version2, "version 2"); 68 | } 69 | catch (Exception ex) 70 | { 71 | this.BaseOutput = "Error doing something:\n\n" + ex.ToString(); 72 | } 73 | } 74 | 75 | private string CompileAndDecompile(string code, string name) 76 | { 77 | SyntaxTree? codeTree = CSharpSyntaxTree.ParseText(code, new CSharpParseOptions(kind: SourceCodeKind.Regular).WithLanguageVersion(LanguageVersion.Preview), "Program.cs"); 78 | 79 | var outputKind = codeTree.GetCompilationUnitRoot().Members.Any(m => m is GlobalStatementSyntax) 80 | ? OutputKind.ConsoleApplication 81 | : OutputKind.DynamicallyLinkedLibrary; 82 | 83 | var codeCompilation = CSharpCompilation.Create("Program", new SyntaxTree[] { codeTree }, Net80.References.All, new CSharpCompilationOptions(outputKind, concurrentBuild: false)); 84 | 85 | var errors = GetErrors("Error compiling " + name + " code:\n\n", codeCompilation.GetDiagnostics()); 86 | if (errors != null) 87 | { 88 | return errors; 89 | } 90 | 91 | var assemblyStream = GetAssemblyStream(codeCompilation, out var rawErrors); 92 | if (rawErrors is { Length: > 0 } || assemblyStream == null) 93 | { 94 | return "Error getting assembly stream for " + name + " code: " + rawErrors; 95 | } 96 | 97 | using var peFile = new PEFile("", assemblyStream); 98 | var decompiler = new ICSharpCode.Decompiler.CSharp.CSharpDecompiler(peFile, s_assemblyResolver, _decompilerSettings); 99 | return decompiler.DecompileWholeModuleAsString(); 100 | } 101 | 102 | private static Stream? GetAssemblyStream(Compilation generatorCompilation, out string? errors) 103 | { 104 | try 105 | { 106 | var generatorStream = new MemoryStream(); 107 | Microsoft.CodeAnalysis.Emit.EmitResult? result = generatorCompilation.Emit(generatorStream); 108 | if (!result.Success) 109 | { 110 | errors = GetErrors($"Error emitting aseembly:", result.Diagnostics, false); 111 | return null; 112 | } 113 | generatorStream.Seek(0, SeekOrigin.Begin); 114 | errors = null; 115 | return generatorStream; 116 | } 117 | catch (Exception ex) 118 | { 119 | errors = ex.ToString(); 120 | return null; 121 | } 122 | } 123 | 124 | private static string? GetErrors(string header, IEnumerable diagnostics, bool errorsOnly = true) 125 | { 126 | IEnumerable? errors = diagnostics.Where(d => !errorsOnly || d.Severity == DiagnosticSeverity.Error); 127 | 128 | if (!errors.Any()) 129 | { 130 | return null; 131 | } 132 | 133 | return header + Environment.NewLine + Environment.NewLine + string.Join(Environment.NewLine, errors); 134 | } 135 | } 136 | -------------------------------------------------------------------------------- /Shared/MainLayout.razor: -------------------------------------------------------------------------------- 1 | @inherits LayoutComponentBase 2 | 3 | @Body 4 | -------------------------------------------------------------------------------- /_Imports.razor: -------------------------------------------------------------------------------- 1 | @using System.Net.Http 2 | @using System.Net.Http.Json 3 | @using Microsoft.AspNetCore.Components.Forms 4 | @using Microsoft.AspNetCore.Components.Routing 5 | @using Microsoft.AspNetCore.Components.Web 6 | @using Microsoft.AspNetCore.Components.Web.Virtualization 7 | @using Microsoft.AspNetCore.Components.WebAssembly.Http 8 | @using Microsoft.JSInterop 9 | @using DecompilationDiffer 10 | @using DecompilationDiffer.Shared 11 | 12 | @using BlazorMonaco 13 | @using BlazorMonaco.Editor 14 | -------------------------------------------------------------------------------- /assets/bulb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidwengier/DecompilationDiffer/66ea119422c414f16b883fb0ddd1dc709b2f5db3/assets/bulb.png -------------------------------------------------------------------------------- /assets/sourcegendev.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidwengier/DecompilationDiffer/66ea119422c414f16b883fb0ddd1dc709b2f5db3/assets/sourcegendev.gif -------------------------------------------------------------------------------- /version.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json", 3 | "version": "2.0" 4 | } -------------------------------------------------------------------------------- /wwwroot/.nojekyll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidwengier/DecompilationDiffer/66ea119422c414f16b883fb0ddd1dc709b2f5db3/wwwroot/.nojekyll -------------------------------------------------------------------------------- /wwwroot/css/app.css: -------------------------------------------------------------------------------- 1 | @import url('open-iconic/font/css/open-iconic-bootstrap.min.css'); 2 | 3 | html, body { 4 | font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; 5 | display: flex; 6 | height: 98%; 7 | width: 99%; 8 | background-color: lightgray; 9 | } 10 | 11 | a, .btn-link { 12 | color: #0366d6; 13 | } 14 | 15 | .btn-primary { 16 | color: #fff; 17 | background-color: #1b6ec2; 18 | border-color: #1861ac; 19 | } 20 | 21 | #app { 22 | padding-left: 20px; 23 | padding-top: 20px; 24 | display: flex; 25 | flex: 1 1; 26 | } 27 | 28 | .valid.modified:not([type=checkbox]) { 29 | outline: 1px solid #26b050; 30 | } 31 | 32 | .invalid { 33 | outline: 1px solid red; 34 | } 35 | 36 | .validation-message { 37 | color: red; 38 | } 39 | 40 | #blazor-error-ui { 41 | background: lightyellow; 42 | bottom: 0; 43 | box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2); 44 | display: none; 45 | left: 0; 46 | padding: 0.6rem 1.25rem 0.7rem 1.25rem; 47 | position: fixed; 48 | width: 100%; 49 | z-index: 1000; 50 | } 51 | 52 | #blazor-error-ui .dismiss { 53 | cursor: pointer; 54 | position: absolute; 55 | right: 0.75rem; 56 | top: 0.5rem; 57 | } 58 | 59 | .monaco-editor-container { 60 | height: 100%; 61 | border: 1px solid gray; 62 | } 63 | 64 | .header { 65 | font-weight: normal; 66 | font-size: 16pt; 67 | } 68 | 69 | div.refresh { 70 | position: relative; 71 | width: 160px; 72 | float: right; 73 | vertical-align: bottom; 74 | } 75 | 76 | div.refresh span { 77 | vertical-align: bottom; 78 | } 79 | 80 | div.refresh div { 81 | position: absolute; 82 | top: 0; 83 | right: 0; 84 | width: 100px; 85 | cursor: pointer; 86 | line-height: 1; 87 | } 88 | 89 | .banner { 90 | /* grid-area: 1 / 1 / 2 / 3; */ 91 | background-color: white; 92 | position: absolute; 93 | top: 0; 94 | left: 0; 95 | right: 0; 96 | border-bottom: 2px solid black; 97 | text-align: center; 98 | padding-left: 10px; 99 | padding-right: 10px; 100 | font-size: 14pt; 101 | } 102 | 103 | .banner .title { 104 | float: left; 105 | font-weight: bold; 106 | } 107 | 108 | .banner .title .version { 109 | font-size: 10pt; 110 | } 111 | 112 | .banner .about { 113 | float: right; 114 | } 115 | 116 | 117 | .parent { 118 | display: grid; 119 | grid-template-columns: repeat(2, 1fr); 120 | grid-template-rows: 2em 6em 2em 10em 2em 1fr; 121 | grid-column-gap: 8px; 122 | grid-row-gap: 8px; 123 | padding-top: 20px; 124 | width: 100%; 125 | height: 100%; 126 | flex-direction: row; 127 | } 128 | 129 | .code-header { 130 | grid-area: 1 / 1 / 2 / 3; 131 | } 132 | 133 | .code { 134 | grid-area: 2 / 1 / 3 / 3; 135 | } 136 | 137 | .v1-header { 138 | grid-area: 3 / 1 / 4 / 2; 139 | } 140 | 141 | .v1 { 142 | grid-area: 4 / 1 / 5 / 2; 143 | } 144 | 145 | .v2-header { 146 | grid-area: 3 / 2 / 4 / 3; 147 | } 148 | 149 | .v2 { 150 | grid-area: 4 / 2 / 5 / 4; 151 | } 152 | 153 | .diff-header { 154 | grid-area: 5 / 1 / 6 / 3; 155 | } 156 | 157 | .v1Diff { 158 | grid-area: 6 / 1 / 7 / 2; 159 | } 160 | 161 | .v2Diff { 162 | grid-area: 6 / 2 / 7 / 3; 163 | } -------------------------------------------------------------------------------- /wwwroot/css/open-iconic/FONT-LICENSE: -------------------------------------------------------------------------------- 1 | SIL OPEN FONT LICENSE Version 1.1 2 | 3 | Copyright (c) 2014 Waybury 4 | 5 | PREAMBLE 6 | The goals of the Open Font License (OFL) are to stimulate worldwide 7 | development of collaborative font projects, to support the font creation 8 | efforts of academic and linguistic communities, and to provide a free and 9 | open framework in which fonts may be shared and improved in partnership 10 | with others. 11 | 12 | The OFL allows the licensed fonts to be used, studied, modified and 13 | redistributed freely as long as they are not sold by themselves. The 14 | fonts, including any derivative works, can be bundled, embedded, 15 | redistributed and/or sold with any software provided that any reserved 16 | names are not used by derivative works. The fonts and derivatives, 17 | however, cannot be released under any other type of license. The 18 | requirement for fonts to remain under this license does not apply 19 | to any document created using the fonts or their derivatives. 20 | 21 | DEFINITIONS 22 | "Font Software" refers to the set of files released by the Copyright 23 | Holder(s) under this license and clearly marked as such. This may 24 | include source files, build scripts and documentation. 25 | 26 | "Reserved Font Name" refers to any names specified as such after the 27 | copyright statement(s). 28 | 29 | "Original Version" refers to the collection of Font Software components as 30 | distributed by the Copyright Holder(s). 31 | 32 | "Modified Version" refers to any derivative made by adding to, deleting, 33 | or substituting -- in part or in whole -- any of the components of the 34 | Original Version, by changing formats or by porting the Font Software to a 35 | new environment. 36 | 37 | "Author" refers to any designer, engineer, programmer, technical 38 | writer or other person who contributed to the Font Software. 39 | 40 | PERMISSION & CONDITIONS 41 | Permission is hereby granted, free of charge, to any person obtaining 42 | a copy of the Font Software, to use, study, copy, merge, embed, modify, 43 | redistribute, and sell modified and unmodified copies of the Font 44 | Software, subject to the following conditions: 45 | 46 | 1) Neither the Font Software nor any of its individual components, 47 | in Original or Modified Versions, may be sold by itself. 48 | 49 | 2) Original or Modified Versions of the Font Software may be bundled, 50 | redistributed and/or sold with any software, provided that each copy 51 | contains the above copyright notice and this license. These can be 52 | included either as stand-alone text files, human-readable headers or 53 | in the appropriate machine-readable metadata fields within text or 54 | binary files as long as those fields can be easily viewed by the user. 55 | 56 | 3) No Modified Version of the Font Software may use the Reserved Font 57 | Name(s) unless explicit written permission is granted by the corresponding 58 | Copyright Holder. This restriction only applies to the primary font name as 59 | presented to the users. 60 | 61 | 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font 62 | Software shall not be used to promote, endorse or advertise any 63 | Modified Version, except to acknowledge the contribution(s) of the 64 | Copyright Holder(s) and the Author(s) or with their explicit written 65 | permission. 66 | 67 | 5) The Font Software, modified or unmodified, in part or in whole, 68 | must be distributed entirely under this license, and must not be 69 | distributed under any other license. The requirement for fonts to 70 | remain under this license does not apply to any document created 71 | using the Font Software. 72 | 73 | TERMINATION 74 | This license becomes null and void if any of the above conditions are 75 | not met. 76 | 77 | DISCLAIMER 78 | THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 79 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF 80 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT 81 | OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE 82 | COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 83 | INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL 84 | DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 85 | FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM 86 | OTHER DEALINGS IN THE FONT SOFTWARE. 87 | -------------------------------------------------------------------------------- /wwwroot/css/open-iconic/ICON-LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Waybury 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. -------------------------------------------------------------------------------- /wwwroot/css/open-iconic/README.md: -------------------------------------------------------------------------------- 1 | [Open Iconic v1.1.1](http://useiconic.com/open) 2 | =========== 3 | 4 | ### Open Iconic is the open source sibling of [Iconic](http://useiconic.com). It is a hyper-legible collection of 223 icons with a tiny footprint—ready to use with Bootstrap and Foundation. [View the collection](http://useiconic.com/open#icons) 5 | 6 | 7 | 8 | ## What's in Open Iconic? 9 | 10 | * 223 icons designed to be legible down to 8 pixels 11 | * Super-light SVG files - 61.8 for the entire set 12 | * SVG sprite—the modern replacement for icon fonts 13 | * Webfont (EOT, OTF, SVG, TTF, WOFF), PNG and WebP formats 14 | * Webfont stylesheets (including versions for Bootstrap and Foundation) in CSS, LESS, SCSS and Stylus formats 15 | * PNG and WebP raster images in 8px, 16px, 24px, 32px, 48px and 64px. 16 | 17 | 18 | ## Getting Started 19 | 20 | #### For code samples and everything else you need to get started with Open Iconic, check out our [Icons](http://useiconic.com/open#icons) and [Reference](http://useiconic.com/open#reference) sections. 21 | 22 | ### General Usage 23 | 24 | #### Using Open Iconic's SVGs 25 | 26 | We like SVGs and we think they're the way to display icons on the web. Since Open Iconic are just basic SVGs, we suggest you display them like you would any other image (don't forget the `alt` attribute). 27 | 28 | ``` 29 | 30 | ``` 31 | 32 | #### Using Open Iconic's SVG Sprite 33 | 34 | Open Iconic also comes in a SVG sprite which allows you to display all the icons in the set with a single request. It's like an icon font, without being a hack. 35 | 36 | Adding an icon from an SVG sprite is a little different than what you're used to, but it's still a piece of cake. *Tip: To make your icons easily style able, we suggest adding a general class to the* `` *tag and a unique class name for each different icon in the* `` *tag.* 37 | 38 | ``` 39 | 40 | 41 | 42 | ``` 43 | 44 | Sizing icons only needs basic CSS. All the icons are in a square format, so just set the `` tag with equal width and height dimensions. 45 | 46 | ``` 47 | .icon { 48 | width: 16px; 49 | height: 16px; 50 | } 51 | ``` 52 | 53 | Coloring icons is even easier. All you need to do is set the `fill` rule on the `` tag. 54 | 55 | ``` 56 | .icon-account-login { 57 | fill: #f00; 58 | } 59 | ``` 60 | 61 | To learn more about SVG Sprites, read [Chris Coyier's guide](http://css-tricks.com/svg-sprites-use-better-icon-fonts/). 62 | 63 | #### Using Open Iconic's Icon Font... 64 | 65 | 66 | ##### …with Bootstrap 67 | 68 | You can find our Bootstrap stylesheets in `font/css/open-iconic-bootstrap.{css, less, scss, styl}` 69 | 70 | 71 | ``` 72 | 73 | ``` 74 | 75 | 76 | ``` 77 | 78 | ``` 79 | 80 | ##### …with Foundation 81 | 82 | You can find our Foundation stylesheets in `font/css/open-iconic-foundation.{css, less, scss, styl}` 83 | 84 | ``` 85 | 86 | ``` 87 | 88 | 89 | ``` 90 | 91 | ``` 92 | 93 | ##### …on its own 94 | 95 | You can find our default stylesheets in `font/css/open-iconic.{css, less, scss, styl}` 96 | 97 | ``` 98 | 99 | ``` 100 | 101 | ``` 102 | 103 | ``` 104 | 105 | 106 | ## License 107 | 108 | ### Icons 109 | 110 | All code (including SVG markup) is under the [MIT License](http://opensource.org/licenses/MIT). 111 | 112 | ### Fonts 113 | 114 | All fonts are under the [SIL Licensed](http://scripts.sil.org/cms/scripts/page.php?item_id=OFL_web). 115 | -------------------------------------------------------------------------------- /wwwroot/css/open-iconic/font/css/open-iconic-bootstrap.min.css: -------------------------------------------------------------------------------- 1 | @font-face{font-family:Icons;src:url(../fonts/open-iconic.eot);src:url(../fonts/open-iconic.eot?#iconic-sm) format('embedded-opentype'),url(../fonts/open-iconic.woff) format('woff'),url(../fonts/open-iconic.ttf) format('truetype'),url(../fonts/open-iconic.otf) format('opentype'),url(../fonts/open-iconic.svg#iconic-sm) format('svg');font-weight:400;font-style:normal}.oi{position:relative;top:1px;display:inline-block;speak:none;font-family:Icons;font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.oi:empty:before{width:1em;text-align:center;box-sizing:content-box}.oi.oi-align-center:before{text-align:center}.oi.oi-align-left:before{text-align:left}.oi.oi-align-right:before{text-align:right}.oi.oi-flip-horizontal:before{-webkit-transform:scale(-1,1);-ms-transform:scale(-1,1);transform:scale(-1,1)}.oi.oi-flip-vertical:before{-webkit-transform:scale(1,-1);-ms-transform:scale(-1,1);transform:scale(1,-1)}.oi.oi-flip-horizontal-vertical:before{-webkit-transform:scale(-1,-1);-ms-transform:scale(-1,1);transform:scale(-1,-1)}.oi-account-login:before{content:'\e000'}.oi-account-logout:before{content:'\e001'}.oi-action-redo:before{content:'\e002'}.oi-action-undo:before{content:'\e003'}.oi-align-center:before{content:'\e004'}.oi-align-left:before{content:'\e005'}.oi-align-right:before{content:'\e006'}.oi-aperture:before{content:'\e007'}.oi-arrow-bottom:before{content:'\e008'}.oi-arrow-circle-bottom:before{content:'\e009'}.oi-arrow-circle-left:before{content:'\e00a'}.oi-arrow-circle-right:before{content:'\e00b'}.oi-arrow-circle-top:before{content:'\e00c'}.oi-arrow-left:before{content:'\e00d'}.oi-arrow-right:before{content:'\e00e'}.oi-arrow-thick-bottom:before{content:'\e00f'}.oi-arrow-thick-left:before{content:'\e010'}.oi-arrow-thick-right:before{content:'\e011'}.oi-arrow-thick-top:before{content:'\e012'}.oi-arrow-top:before{content:'\e013'}.oi-audio-spectrum:before{content:'\e014'}.oi-audio:before{content:'\e015'}.oi-badge:before{content:'\e016'}.oi-ban:before{content:'\e017'}.oi-bar-chart:before{content:'\e018'}.oi-basket:before{content:'\e019'}.oi-battery-empty:before{content:'\e01a'}.oi-battery-full:before{content:'\e01b'}.oi-beaker:before{content:'\e01c'}.oi-bell:before{content:'\e01d'}.oi-bluetooth:before{content:'\e01e'}.oi-bold:before{content:'\e01f'}.oi-bolt:before{content:'\e020'}.oi-book:before{content:'\e021'}.oi-bookmark:before{content:'\e022'}.oi-box:before{content:'\e023'}.oi-briefcase:before{content:'\e024'}.oi-british-pound:before{content:'\e025'}.oi-browser:before{content:'\e026'}.oi-brush:before{content:'\e027'}.oi-bug:before{content:'\e028'}.oi-bullhorn:before{content:'\e029'}.oi-calculator:before{content:'\e02a'}.oi-calendar:before{content:'\e02b'}.oi-camera-slr:before{content:'\e02c'}.oi-caret-bottom:before{content:'\e02d'}.oi-caret-left:before{content:'\e02e'}.oi-caret-right:before{content:'\e02f'}.oi-caret-top:before{content:'\e030'}.oi-cart:before{content:'\e031'}.oi-chat:before{content:'\e032'}.oi-check:before{content:'\e033'}.oi-chevron-bottom:before{content:'\e034'}.oi-chevron-left:before{content:'\e035'}.oi-chevron-right:before{content:'\e036'}.oi-chevron-top:before{content:'\e037'}.oi-circle-check:before{content:'\e038'}.oi-circle-x:before{content:'\e039'}.oi-clipboard:before{content:'\e03a'}.oi-clock:before{content:'\e03b'}.oi-cloud-download:before{content:'\e03c'}.oi-cloud-upload:before{content:'\e03d'}.oi-cloud:before{content:'\e03e'}.oi-cloudy:before{content:'\e03f'}.oi-code:before{content:'\e040'}.oi-cog:before{content:'\e041'}.oi-collapse-down:before{content:'\e042'}.oi-collapse-left:before{content:'\e043'}.oi-collapse-right:before{content:'\e044'}.oi-collapse-up:before{content:'\e045'}.oi-command:before{content:'\e046'}.oi-comment-square:before{content:'\e047'}.oi-compass:before{content:'\e048'}.oi-contrast:before{content:'\e049'}.oi-copywriting:before{content:'\e04a'}.oi-credit-card:before{content:'\e04b'}.oi-crop:before{content:'\e04c'}.oi-dashboard:before{content:'\e04d'}.oi-data-transfer-download:before{content:'\e04e'}.oi-data-transfer-upload:before{content:'\e04f'}.oi-delete:before{content:'\e050'}.oi-dial:before{content:'\e051'}.oi-document:before{content:'\e052'}.oi-dollar:before{content:'\e053'}.oi-double-quote-sans-left:before{content:'\e054'}.oi-double-quote-sans-right:before{content:'\e055'}.oi-double-quote-serif-left:before{content:'\e056'}.oi-double-quote-serif-right:before{content:'\e057'}.oi-droplet:before{content:'\e058'}.oi-eject:before{content:'\e059'}.oi-elevator:before{content:'\e05a'}.oi-ellipses:before{content:'\e05b'}.oi-envelope-closed:before{content:'\e05c'}.oi-envelope-open:before{content:'\e05d'}.oi-euro:before{content:'\e05e'}.oi-excerpt:before{content:'\e05f'}.oi-expand-down:before{content:'\e060'}.oi-expand-left:before{content:'\e061'}.oi-expand-right:before{content:'\e062'}.oi-expand-up:before{content:'\e063'}.oi-external-link:before{content:'\e064'}.oi-eye:before{content:'\e065'}.oi-eyedropper:before{content:'\e066'}.oi-file:before{content:'\e067'}.oi-fire:before{content:'\e068'}.oi-flag:before{content:'\e069'}.oi-flash:before{content:'\e06a'}.oi-folder:before{content:'\e06b'}.oi-fork:before{content:'\e06c'}.oi-fullscreen-enter:before{content:'\e06d'}.oi-fullscreen-exit:before{content:'\e06e'}.oi-globe:before{content:'\e06f'}.oi-graph:before{content:'\e070'}.oi-grid-four-up:before{content:'\e071'}.oi-grid-three-up:before{content:'\e072'}.oi-grid-two-up:before{content:'\e073'}.oi-hard-drive:before{content:'\e074'}.oi-header:before{content:'\e075'}.oi-headphones:before{content:'\e076'}.oi-heart:before{content:'\e077'}.oi-home:before{content:'\e078'}.oi-image:before{content:'\e079'}.oi-inbox:before{content:'\e07a'}.oi-infinity:before{content:'\e07b'}.oi-info:before{content:'\e07c'}.oi-italic:before{content:'\e07d'}.oi-justify-center:before{content:'\e07e'}.oi-justify-left:before{content:'\e07f'}.oi-justify-right:before{content:'\e080'}.oi-key:before{content:'\e081'}.oi-laptop:before{content:'\e082'}.oi-layers:before{content:'\e083'}.oi-lightbulb:before{content:'\e084'}.oi-link-broken:before{content:'\e085'}.oi-link-intact:before{content:'\e086'}.oi-list-rich:before{content:'\e087'}.oi-list:before{content:'\e088'}.oi-location:before{content:'\e089'}.oi-lock-locked:before{content:'\e08a'}.oi-lock-unlocked:before{content:'\e08b'}.oi-loop-circular:before{content:'\e08c'}.oi-loop-square:before{content:'\e08d'}.oi-loop:before{content:'\e08e'}.oi-magnifying-glass:before{content:'\e08f'}.oi-map-marker:before{content:'\e090'}.oi-map:before{content:'\e091'}.oi-media-pause:before{content:'\e092'}.oi-media-play:before{content:'\e093'}.oi-media-record:before{content:'\e094'}.oi-media-skip-backward:before{content:'\e095'}.oi-media-skip-forward:before{content:'\e096'}.oi-media-step-backward:before{content:'\e097'}.oi-media-step-forward:before{content:'\e098'}.oi-media-stop:before{content:'\e099'}.oi-medical-cross:before{content:'\e09a'}.oi-menu:before{content:'\e09b'}.oi-microphone:before{content:'\e09c'}.oi-minus:before{content:'\e09d'}.oi-monitor:before{content:'\e09e'}.oi-moon:before{content:'\e09f'}.oi-move:before{content:'\e0a0'}.oi-musical-note:before{content:'\e0a1'}.oi-paperclip:before{content:'\e0a2'}.oi-pencil:before{content:'\e0a3'}.oi-people:before{content:'\e0a4'}.oi-person:before{content:'\e0a5'}.oi-phone:before{content:'\e0a6'}.oi-pie-chart:before{content:'\e0a7'}.oi-pin:before{content:'\e0a8'}.oi-play-circle:before{content:'\e0a9'}.oi-plus:before{content:'\e0aa'}.oi-power-standby:before{content:'\e0ab'}.oi-print:before{content:'\e0ac'}.oi-project:before{content:'\e0ad'}.oi-pulse:before{content:'\e0ae'}.oi-puzzle-piece:before{content:'\e0af'}.oi-question-mark:before{content:'\e0b0'}.oi-rain:before{content:'\e0b1'}.oi-random:before{content:'\e0b2'}.oi-reload:before{content:'\e0b3'}.oi-resize-both:before{content:'\e0b4'}.oi-resize-height:before{content:'\e0b5'}.oi-resize-width:before{content:'\e0b6'}.oi-rss-alt:before{content:'\e0b7'}.oi-rss:before{content:'\e0b8'}.oi-script:before{content:'\e0b9'}.oi-share-boxed:before{content:'\e0ba'}.oi-share:before{content:'\e0bb'}.oi-shield:before{content:'\e0bc'}.oi-signal:before{content:'\e0bd'}.oi-signpost:before{content:'\e0be'}.oi-sort-ascending:before{content:'\e0bf'}.oi-sort-descending:before{content:'\e0c0'}.oi-spreadsheet:before{content:'\e0c1'}.oi-star:before{content:'\e0c2'}.oi-sun:before{content:'\e0c3'}.oi-tablet:before{content:'\e0c4'}.oi-tag:before{content:'\e0c5'}.oi-tags:before{content:'\e0c6'}.oi-target:before{content:'\e0c7'}.oi-task:before{content:'\e0c8'}.oi-terminal:before{content:'\e0c9'}.oi-text:before{content:'\e0ca'}.oi-thumb-down:before{content:'\e0cb'}.oi-thumb-up:before{content:'\e0cc'}.oi-timer:before{content:'\e0cd'}.oi-transfer:before{content:'\e0ce'}.oi-trash:before{content:'\e0cf'}.oi-underline:before{content:'\e0d0'}.oi-vertical-align-bottom:before{content:'\e0d1'}.oi-vertical-align-center:before{content:'\e0d2'}.oi-vertical-align-top:before{content:'\e0d3'}.oi-video:before{content:'\e0d4'}.oi-volume-high:before{content:'\e0d5'}.oi-volume-low:before{content:'\e0d6'}.oi-volume-off:before{content:'\e0d7'}.oi-warning:before{content:'\e0d8'}.oi-wifi:before{content:'\e0d9'}.oi-wrench:before{content:'\e0da'}.oi-x:before{content:'\e0db'}.oi-yen:before{content:'\e0dc'}.oi-zoom-in:before{content:'\e0dd'}.oi-zoom-out:before{content:'\e0de'} -------------------------------------------------------------------------------- /wwwroot/css/open-iconic/font/fonts/open-iconic.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidwengier/DecompilationDiffer/66ea119422c414f16b883fb0ddd1dc709b2f5db3/wwwroot/css/open-iconic/font/fonts/open-iconic.eot -------------------------------------------------------------------------------- /wwwroot/css/open-iconic/font/fonts/open-iconic.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidwengier/DecompilationDiffer/66ea119422c414f16b883fb0ddd1dc709b2f5db3/wwwroot/css/open-iconic/font/fonts/open-iconic.otf -------------------------------------------------------------------------------- /wwwroot/css/open-iconic/font/fonts/open-iconic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 8 | Created by FontForge 20120731 at Tue Jul 1 20:39:22 2014 9 | By P.J. Onori 10 | Created by P.J. Onori with FontForge 2.0 (http://fontforge.sf.net) 11 | 12 | 13 | 14 | 27 | 28 | 30 | 32 | 34 | 36 | 38 | 40 | 42 | 45 | 47 | 49 | 51 | 53 | 55 | 57 | 59 | 61 | 63 | 65 | 67 | 69 | 71 | 74 | 76 | 79 | 81 | 84 | 86 | 88 | 91 | 93 | 95 | 98 | 100 | 102 | 104 | 106 | 109 | 112 | 115 | 117 | 121 | 123 | 125 | 127 | 130 | 132 | 134 | 136 | 138 | 141 | 143 | 145 | 147 | 149 | 151 | 153 | 155 | 157 | 159 | 162 | 165 | 167 | 169 | 172 | 174 | 177 | 179 | 181 | 183 | 185 | 189 | 191 | 194 | 196 | 198 | 200 | 202 | 205 | 207 | 209 | 211 | 213 | 215 | 218 | 220 | 222 | 224 | 226 | 228 | 230 | 232 | 234 | 236 | 238 | 241 | 243 | 245 | 247 | 249 | 251 | 253 | 256 | 259 | 261 | 263 | 265 | 267 | 269 | 272 | 274 | 276 | 280 | 282 | 285 | 287 | 289 | 292 | 295 | 298 | 300 | 302 | 304 | 306 | 309 | 312 | 314 | 316 | 318 | 320 | 322 | 324 | 326 | 330 | 334 | 338 | 340 | 343 | 345 | 347 | 349 | 351 | 353 | 355 | 358 | 360 | 363 | 365 | 367 | 369 | 371 | 373 | 375 | 377 | 379 | 381 | 383 | 386 | 388 | 390 | 392 | 394 | 396 | 399 | 401 | 404 | 406 | 408 | 410 | 412 | 414 | 416 | 419 | 421 | 423 | 425 | 428 | 431 | 435 | 438 | 440 | 442 | 444 | 446 | 448 | 451 | 453 | 455 | 457 | 460 | 462 | 464 | 466 | 468 | 471 | 473 | 477 | 479 | 481 | 483 | 486 | 488 | 490 | 492 | 494 | 496 | 499 | 501 | 504 | 506 | 509 | 512 | 515 | 517 | 520 | 522 | 524 | 526 | 529 | 532 | 534 | 536 | 539 | 542 | 543 | 544 | -------------------------------------------------------------------------------- /wwwroot/css/open-iconic/font/fonts/open-iconic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidwengier/DecompilationDiffer/66ea119422c414f16b883fb0ddd1dc709b2f5db3/wwwroot/css/open-iconic/font/fonts/open-iconic.ttf -------------------------------------------------------------------------------- /wwwroot/css/open-iconic/font/fonts/open-iconic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidwengier/DecompilationDiffer/66ea119422c414f16b883fb0ddd1dc709b2f5db3/wwwroot/css/open-iconic/font/fonts/open-iconic.woff -------------------------------------------------------------------------------- /wwwroot/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidwengier/DecompilationDiffer/66ea119422c414f16b883fb0ddd1dc709b2f5db3/wwwroot/favicon.png -------------------------------------------------------------------------------- /wwwroot/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Decompilation Differ - @davidwengier 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | Decompilation Differ. Loading... 18 | 19 | 20 | An unhandled error has occurred. 21 | Reload 22 | 🗙 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | --------------------------------------------------------------------------------
Sorry, there's nothing at this address.