├── dnSpy.snk ├── images ├── analyzer.png ├── bgimg1.png ├── bgimg2.png ├── console.png ├── debug1.png ├── edit-il1.png ├── edit-il2.png ├── go-to-ep.png ├── md-ed1.png ├── md-ed2.png ├── search.png ├── tooltip.png ├── debug-save.png ├── edit-code.png ├── hexeditor.png ├── nightmare.png ├── scripting.png ├── tab-group.png ├── delete-method.png ├── edit-method.png ├── hilite-refs.png ├── edit-resources.png ├── go-to-md-token.png ├── hilite-keywords.png ├── more-vert-space.png ├── export-to-project.png ├── go-to-md-table-row.png └── structure-visualizer.png ├── .gitattributes ├── dnSpy ├── dnSpy │ ├── Images │ │ ├── dnSpy.ico │ │ ├── DefaultWatermarkDark.png │ │ └── DefaultWatermarkLight.png │ ├── project.json │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── MainApp │ │ ├── App.xaml │ │ ├── AskDlg.xaml.cs │ │ ├── DsLoaderControl.xaml.cs │ │ └── Settings │ │ │ └── EnvironmentAppSettingsPageContainer.cs │ ├── LicenseInfo │ │ ├── CREDITS.txt │ │ └── LICENSE.txt │ ├── Text │ │ ├── Editor │ │ │ ├── ReplBufferKind.cs │ │ │ ├── IAdornmentLayerDefinitionService.cs │ │ │ ├── Search │ │ │ │ └── SearchControl.xaml.cs │ │ │ ├── IWpfTextViewConnectionListenerServiceProvider.cs │ │ │ ├── MetadataAndOrder.cs │ │ │ └── ReplSubBuffer.cs │ │ ├── Formatting │ │ │ ├── ITextFormatterProvider.cs │ │ │ └── ITextParagraphPropertiesFactoryServiceSelector.cs │ │ ├── Repl │ │ │ ├── IReplOptions.cs │ │ │ └── AppSettingsPageContainer.cs │ │ └── CodeEditor │ │ │ ├── ICodeEditorOptions.cs │ │ │ └── AppSettingsPageContainer.cs │ ├── Hex │ │ ├── Files │ │ │ └── DotNet │ │ │ │ └── IDotNetHeap.cs │ │ ├── Commands │ │ │ ├── HexCommandConstants.cs │ │ │ └── LocalSettingsDlg.xaml.cs │ │ ├── Editor │ │ │ ├── Search │ │ │ │ ├── SearchControl.xaml.cs │ │ │ │ └── HexDataKind.cs │ │ │ ├── HexSpaceReservationStackProvider.cs │ │ │ ├── HexAdornmentLayerDefinitionService.cs │ │ │ └── MetadataAndOrder.cs │ │ ├── Intellisense │ │ │ └── HexQuickInfoPresenterControl.xaml.cs │ │ └── HexEditor │ │ │ └── AppSettingsPageContainer.cs │ ├── Documents │ │ └── Tabs │ │ │ └── DocViewer │ │ │ └── Settings │ │ │ ├── IDocumentViewerOptions.cs │ │ │ └── AppSettingsPageContainer.cs │ ├── Output │ │ ├── Settings │ │ │ ├── IOutputWindowOptions.cs │ │ │ └── AppSettingsPageContainer.cs │ │ └── OutputControl.xaml.cs │ ├── Settings │ │ ├── AppearanceCategory │ │ │ └── ITextAppearanceCategoryService.cs │ │ ├── Dialog │ │ │ ├── AppSettingsDlg.xaml.cs │ │ │ └── UIHelpers.cs │ │ ├── XmlSettingsConstants.cs │ │ └── Fonts │ │ │ └── DefaultFontInfo.cs │ ├── Extension │ │ └── LoadedExtension.cs │ ├── Language │ │ └── Intellisense │ │ │ ├── CompletionIconVM.cs │ │ │ ├── CompletionPresenterControl.xaml.cs │ │ │ ├── QuickInfoPresenterControl.xaml.cs │ │ │ └── SignatureHelpPresenterControl.xaml.cs │ ├── Controls │ │ └── IStackedContentChild.cs │ ├── ToolBars │ │ └── ToolBarItemContext.cs │ └── Decompiler │ │ └── DecompilerAppSettingsPageContainer.cs ├── dnSpy.Roslyn.Internal │ ├── RoslynInternalKey.Private.snk │ ├── project.json │ ├── VBHelpers │ │ ├── SyntaxNodeExtensions.cs │ │ ├── SyntaxTokenExtensions.cs │ │ ├── TextLineExtensions.cs │ │ └── SyntaxTreeExtensions.cs │ ├── QuickInfo │ │ ├── IQuickInfoProvider.cs │ │ ├── PredefinedQuickInfoProviderNames.cs │ │ ├── QuickInfoItem.cs │ │ ├── CSharp │ │ │ └── SemanticQuickInfoProvider.cs │ │ └── ExportQuickInfoProviderAttribute.cs │ ├── Extensions │ │ └── EnumerableExtensions.cs │ └── SmartIndent │ │ └── Helpers.cs ├── dnSpy.Roslyn.VisualBasic.Internal │ ├── project.json │ └── My Project │ │ └── AssemblyInfo.vb ├── dnSpy.Roslyn.VisualBasic.EditorFeatures │ ├── project.json │ └── Dummy.vb ├── dnSpy.Roslyn.EditorFeatures │ ├── project.json │ ├── Extensions │ │ └── DocumentHelpers.cs │ ├── EditorFeaturesResources.cs │ ├── Host │ │ ├── IWaitContext.cs │ │ └── IWaitIndicator.cs │ ├── Editor │ │ └── ContentTypeNames.cs │ ├── Dummy.cs │ └── SmartIndent │ │ └── SmartIndentProvider.cs ├── dnSpy.Contracts.DnSpy │ ├── project.json │ ├── Documents │ │ ├── IDsDocumentNameKey.cs │ │ ├── IDsDotNetDocument.cs │ │ ├── IDsPEDocument.cs │ │ └── TreeView │ │ │ ├── ResourcesFolderNode.cs │ │ │ └── DerivedTypesFolderNode.cs │ ├── Hex │ │ ├── Files │ │ │ ├── IBufferFileHeaders.cs │ │ │ └── DotNet │ │ │ │ └── TablesHeapType.cs │ │ ├── Editor │ │ │ ├── HexAdornmentLayerDefinition.cs │ │ │ ├── HexSpaceReservationManagerDefinition.cs │ │ │ └── HexGlyphTag.cs │ │ ├── Tagging │ │ │ └── HexTag.cs │ │ └── Intellisense │ │ │ └── IHexCustomIntellisensePresenter.cs │ ├── Text │ │ ├── LineConstants.cs │ │ ├── Editor │ │ │ ├── IDsTextView.cs │ │ │ └── PredefinedDsMarginNames.cs │ │ └── Classification │ │ │ └── ITextClassifierAggregator.cs │ ├── Scripting │ │ └── Debugger │ │ │ ├── IILBreakpoint.cs │ │ │ ├── INativeBreakpoint.cs │ │ │ ├── IAnyEventBreakpoint.cs │ │ │ ├── AttachOptions.cs │ │ │ ├── IEventBreakpoint.cs │ │ │ └── DebuggerEventArgs.cs │ ├── Themes │ │ └── ThemeChangedEventArgs.cs │ ├── Command │ │ └── OutputTextPaneIds.cs │ ├── TreeView │ │ ├── IMDTokenNode.cs │ │ ├── TreeViewConstants.cs │ │ ├── ITreeNodeGroup.cs │ │ └── TreeViewListenerEvent.cs │ ├── Tabs │ │ └── ITabServiceProvider.cs │ ├── Settings │ │ └── HexGroups │ │ │ └── PredefinedHexViewGroupNames.cs │ ├── Menus │ │ └── IContextMenuProvider.cs │ └── ToolBars │ │ └── IToolBarItemContext.cs ├── dnSpy.Roslyn.Shared │ ├── project.json │ ├── Properties │ │ └── AssemblyInfo.cs │ └── Intellisense │ │ └── QuickInfo │ │ └── InformationQuickInfoContentControl.xaml.cs ├── dnSpy-x86 │ ├── Properties │ │ └── AssemblyInfo.cs │ └── Program.cs ├── dnSpy.Console │ └── Properties │ │ └── AssemblyInfo.cs ├── dnSpy.Contracts.Logic │ └── Properties │ │ └── AssemblyInfo.cs └── dnSpy.Decompiler │ └── MSBuild │ ├── IJob.cs │ ├── ProjectVersion.cs │ ├── NoMSBuildProjectWriterLogger.cs │ └── IMSBuildProjectWriterLogger.cs ├── .gitignore ├── Extensions ├── dnSpy.BamlDecompiler │ ├── Annotations.cs │ ├── project.json │ ├── Properties │ │ └── AssemblyInfo.cs │ └── BamlSettings.xaml ├── dnSpy.Analyzer │ ├── project.json │ ├── Properties │ │ └── AssemblyInfo.cs │ └── TreeNodes │ │ └── IAsyncCancellable.cs ├── dnSpy.AsmEditor │ ├── project.json │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── SaveModule │ │ ├── SaveOptionsType.cs │ │ └── SaveSingleModuleDlg.xaml.cs │ ├── MethodBody │ │ ├── MethodBodyType.cs │ │ ├── MethodBodyDlg.xaml.cs │ │ ├── SwitchOperandDlg.xaml.cs │ │ └── IEditOperand.cs │ ├── Commands │ │ ├── IIndexedItem.cs │ │ └── AsmEditorContext.cs │ ├── UndoRedo │ │ ├── IUndoObject.cs │ │ └── IUndoableDocumentsProvider.cs │ ├── Resources │ │ ├── ResourceDlg.xaml.cs │ │ ├── ImageListDlg.xaml.cs │ │ ├── ResourceElementDlg.xaml.cs │ │ └── ImageResourceElementDlg.xaml.cs │ ├── Field │ │ └── FieldOptionsDlg.xaml.cs │ ├── Namespace │ │ └── NamespaceDlg.xaml.cs │ ├── Types │ │ └── TypeOptionsDlg.xaml.cs │ ├── Compiler │ │ ├── EditCodeIds.cs │ │ └── EditCodeCommandConstants.cs │ ├── DnlibDialogs │ │ ├── MemberRefDlg.xaml.cs │ │ ├── ParamDefDlg.xaml.cs │ │ ├── ImplMapControl.xaml.cs │ │ ├── MethodSpecDlg.xaml.cs │ │ ├── ConstantControl.xaml.cs │ │ ├── ConstantTypeDlg.xaml.cs │ │ ├── DeclSecurityDlg.xaml.cs │ │ ├── GenericParamDlg.xaml.cs │ │ ├── TypeSigCreatorDlg.xaml.cs │ │ ├── CustomAttributeDlg.xaml.cs │ │ ├── DeclSecurityControl.xaml.cs │ │ ├── MarshalTypeControl.xaml.cs │ │ ├── MethodSigCreatorDlg.xaml.cs │ │ ├── SecurityAttributeDlg.xaml.cs │ │ ├── TypeDefOrRefAndCADlg.xaml.cs │ │ ├── CreateTypeSigArrayDlg.xaml.cs │ │ ├── CANamedArgumentsControl.xaml.cs │ │ ├── TypeDefOrRefAndCAControl.xaml.cs │ │ ├── CreateTypeSigArrayControl.xaml.cs │ │ └── Null.cs │ ├── Method │ │ └── MethodOptionsDlg.xaml.cs │ ├── Module │ │ ├── NetModuleOptionsDlg.xaml.cs │ │ └── NetModuleOptions.cs │ ├── Property │ │ └── PropertyOptionsDlg.xaml.cs │ ├── ExtensionMethods.cs │ └── ViewHelpers │ │ ├── ISelectItems.cs │ │ ├── IOpenFile.cs │ │ ├── IEdit.cs │ │ └── IOpenPublicKeyFile.cs ├── Examples │ ├── Example1.Extension │ │ ├── project.json │ │ ├── MySettingsControl.xaml.cs │ │ ├── README.md │ │ ├── TheExtension.cs │ │ └── MySettingsControl.xaml │ └── Example2.Extension │ │ ├── project.json │ │ ├── ToolWindowControl.xaml.cs │ │ ├── TheExtension.cs │ │ ├── README.md │ │ └── DocumentViewerToolTipProvider.cs ├── dnSpy.Debugger │ ├── dnSpy.Debugger │ │ ├── project.json │ │ ├── Properties │ │ │ └── AssemblyInfo.cs │ │ ├── Exceptions │ │ │ ├── ExceptionType.cs │ │ │ └── ExceptionControl.xaml.cs │ │ ├── IModuleIdHolder.cs │ │ ├── ILoadBeforeDebug.cs │ │ ├── AppMenus.cs │ │ ├── Memory │ │ │ └── MemoryControl.xaml.cs │ │ ├── Breakpoints │ │ │ └── DebugEventBreakpoint.cs │ │ ├── DnModuleIdExtensions.cs │ │ └── ModuleIdExtensions.cs │ └── dndbg │ │ ├── Properties │ │ └── AssemblyInfo.cs │ │ └── Engine │ │ └── CorDebugExtensions.cs ├── ILSpy.Decompiler │ ├── dnSpy.Decompiler.ILSpy │ │ ├── project.json │ │ └── Properties │ │ │ └── AssemblyInfo.cs │ └── dnSpy.Decompiler.ILSpy.Core │ │ └── Properties │ │ └── AssemblyInfo.cs └── dnSpy.Scripting.Roslyn │ ├── project.json │ ├── Properties │ └── AssemblyInfo.cs │ ├── CSharpInteractive.rsp │ ├── VisualBasicInteractive.rsp │ └── Common │ └── ScriptControl.xaml.cs ├── DnlibCommon.props ├── appveyor.yml ├── .editorconfig └── .gitmodules /dnSpy.snk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XenocodeRCE/dnSpy/master/dnSpy.snk -------------------------------------------------------------------------------- /images/analyzer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XenocodeRCE/dnSpy/master/images/analyzer.png -------------------------------------------------------------------------------- /images/bgimg1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XenocodeRCE/dnSpy/master/images/bgimg1.png -------------------------------------------------------------------------------- /images/bgimg2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XenocodeRCE/dnSpy/master/images/bgimg2.png -------------------------------------------------------------------------------- /images/console.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XenocodeRCE/dnSpy/master/images/console.png -------------------------------------------------------------------------------- /images/debug1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XenocodeRCE/dnSpy/master/images/debug1.png -------------------------------------------------------------------------------- /images/edit-il1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XenocodeRCE/dnSpy/master/images/edit-il1.png -------------------------------------------------------------------------------- /images/edit-il2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XenocodeRCE/dnSpy/master/images/edit-il2.png -------------------------------------------------------------------------------- /images/go-to-ep.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XenocodeRCE/dnSpy/master/images/go-to-ep.png -------------------------------------------------------------------------------- /images/md-ed1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XenocodeRCE/dnSpy/master/images/md-ed1.png -------------------------------------------------------------------------------- /images/md-ed2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XenocodeRCE/dnSpy/master/images/md-ed2.png -------------------------------------------------------------------------------- /images/search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XenocodeRCE/dnSpy/master/images/search.png -------------------------------------------------------------------------------- /images/tooltip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XenocodeRCE/dnSpy/master/images/tooltip.png -------------------------------------------------------------------------------- /images/debug-save.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XenocodeRCE/dnSpy/master/images/debug-save.png -------------------------------------------------------------------------------- /images/edit-code.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XenocodeRCE/dnSpy/master/images/edit-code.png -------------------------------------------------------------------------------- /images/hexeditor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XenocodeRCE/dnSpy/master/images/hexeditor.png -------------------------------------------------------------------------------- /images/nightmare.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XenocodeRCE/dnSpy/master/images/nightmare.png -------------------------------------------------------------------------------- /images/scripting.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XenocodeRCE/dnSpy/master/images/scripting.png -------------------------------------------------------------------------------- /images/tab-group.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XenocodeRCE/dnSpy/master/images/tab-group.png -------------------------------------------------------------------------------- /images/delete-method.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XenocodeRCE/dnSpy/master/images/delete-method.png -------------------------------------------------------------------------------- /images/edit-method.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XenocodeRCE/dnSpy/master/images/edit-method.png -------------------------------------------------------------------------------- /images/hilite-refs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XenocodeRCE/dnSpy/master/images/hilite-refs.png -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | *.cs text diff=csharp 3 | *.sln text eol=crlf 4 | *.csproj text eol=crlf 5 | -------------------------------------------------------------------------------- /images/edit-resources.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XenocodeRCE/dnSpy/master/images/edit-resources.png -------------------------------------------------------------------------------- /images/go-to-md-token.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XenocodeRCE/dnSpy/master/images/go-to-md-token.png -------------------------------------------------------------------------------- /images/hilite-keywords.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XenocodeRCE/dnSpy/master/images/hilite-keywords.png -------------------------------------------------------------------------------- /images/more-vert-space.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XenocodeRCE/dnSpy/master/images/more-vert-space.png -------------------------------------------------------------------------------- /dnSpy/dnSpy/Images/dnSpy.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XenocodeRCE/dnSpy/master/dnSpy/dnSpy/Images/dnSpy.ico -------------------------------------------------------------------------------- /images/export-to-project.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XenocodeRCE/dnSpy/master/images/export-to-project.png -------------------------------------------------------------------------------- /images/go-to-md-table-row.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XenocodeRCE/dnSpy/master/images/go-to-md-table-row.png -------------------------------------------------------------------------------- /images/structure-visualizer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XenocodeRCE/dnSpy/master/images/structure-visualizer.png -------------------------------------------------------------------------------- /dnSpy/dnSpy/Images/DefaultWatermarkDark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XenocodeRCE/dnSpy/master/dnSpy/dnSpy/Images/DefaultWatermarkDark.png -------------------------------------------------------------------------------- /dnSpy/dnSpy/Images/DefaultWatermarkLight.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XenocodeRCE/dnSpy/master/dnSpy/dnSpy/Images/DefaultWatermarkLight.png -------------------------------------------------------------------------------- /dnSpy/dnSpy.Roslyn.Internal/RoslynInternalKey.Private.snk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XenocodeRCE/dnSpy/master/dnSpy/dnSpy.Roslyn.Internal/RoslynInternalKey.Private.snk -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .vs/ 2 | bin/ 3 | obj/ 4 | *.suo 5 | *.user 6 | _ReSharper*/ 7 | *.ReSharper 8 | *.patch 9 | /packages 10 | *.ide/ 11 | *.tmp_proj 12 | project.lock.json 13 | -------------------------------------------------------------------------------- /Extensions/dnSpy.BamlDecompiler/Annotations.cs: -------------------------------------------------------------------------------- 1 | namespace dnSpy.BamlDecompiler { 2 | internal class BamlConnectionId { 3 | public uint Id { get; } 4 | 5 | public BamlConnectionId(uint id) { 6 | Id = id; 7 | } 8 | } 9 | } -------------------------------------------------------------------------------- /Extensions/dnSpy.Analyzer/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "Microsoft.VisualStudio.Text.UI.Wpf": "15.0.25824-RC" 4 | }, 5 | "frameworks": { 6 | "net46": { } 7 | }, 8 | "runtimes": { 9 | "win": { } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "Microsoft.VisualStudio.Text.UI.Wpf": "15.0.25824-RC" 4 | }, 5 | "frameworks": { 6 | "net46": { } 7 | }, 8 | "runtimes": { 9 | "win": { } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Extensions/dnSpy.BamlDecompiler/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "Microsoft.VisualStudio.Text.UI.Wpf": "15.0.25824-RC" 4 | }, 5 | "frameworks": { 6 | "net46": { } 7 | }, 8 | "runtimes": { 9 | "win": { } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Extensions/Examples/Example1.Extension/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "Microsoft.VisualStudio.Text.UI.Wpf": "15.0.25824-RC" 4 | }, 5 | "frameworks": { 6 | "net46": { } 7 | }, 8 | "runtimes": { 9 | "win": { } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Extensions/Examples/Example2.Extension/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "Microsoft.VisualStudio.Text.UI.Wpf": "15.0.25824-RC" 4 | }, 5 | "frameworks": { 6 | "net46": { } 7 | }, 8 | "runtimes": { 9 | "win": { } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Extensions/dnSpy.Debugger/dnSpy.Debugger/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "Microsoft.VisualStudio.Text.UI.Wpf": "15.0.25824-RC" 4 | }, 5 | "frameworks": { 6 | "net46": { } 7 | }, 8 | "runtimes": { 9 | "win": { } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Roslyn.VisualBasic.Internal/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "Microsoft.CodeAnalysis.VisualBasic.Features": "2.0.0-rc2" 4 | }, 5 | "frameworks": { 6 | "net46": { } 7 | }, 8 | "runtimes": { 9 | "win": { } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /DnlibCommon.props: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | THREAD_SAFE 5 | 6 | -------------------------------------------------------------------------------- /Extensions/ILSpy.Decompiler/dnSpy.Decompiler.ILSpy/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "Microsoft.VisualStudio.Text.UI.Wpf": "15.0.25824-RC" 4 | }, 5 | "frameworks": { 6 | "net46": { } 7 | }, 8 | "runtimes": { 9 | "win": { } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Extensions/Examples/Example1.Extension/MySettingsControl.xaml.cs: -------------------------------------------------------------------------------- 1 | using System.Windows.Controls; 2 | 3 | namespace Example1.Extension { 4 | public partial class MySettingsControl : UserControl { 5 | public MySettingsControl() { 6 | InitializeComponent(); 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Extensions/Examples/Example2.Extension/ToolWindowControl.xaml.cs: -------------------------------------------------------------------------------- 1 | using System.Windows.Controls; 2 | 3 | namespace Example2.Extension { 4 | public partial class ToolWindowControl : UserControl { 5 | public ToolWindowControl() { 6 | InitializeComponent(); 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Roslyn.Internal/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "Microsoft.CodeAnalysis.CSharp.Features": "2.0.0-rc2", 4 | "Microsoft.CodeAnalysis.VisualBasic.Features": "2.0.0-rc2" 5 | }, 6 | "frameworks": { 7 | "net46": { } 8 | }, 9 | "runtimes": { 10 | "win": { } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Roslyn.VisualBasic.EditorFeatures/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "Microsoft.CodeAnalysis.VisualBasic.Features": "2.0.0-rc2", 4 | "Microsoft.VisualStudio.Text.UI.Wpf": "15.0.25824-RC" 5 | }, 6 | "frameworks": { 7 | "net46": { } 8 | }, 9 | "runtimes": { 10 | "win": { } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Roslyn.EditorFeatures/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "Microsoft.CodeAnalysis.CSharp.Features": "2.0.0-rc2", 4 | "Microsoft.CodeAnalysis.VisualBasic.Features": "2.0.0-rc2", 5 | "Microsoft.VisualStudio.Text.UI.Wpf": "15.0.25824-RC" 6 | }, 7 | "frameworks": { 8 | "net46": { } 9 | }, 10 | "runtimes": { 11 | "win": { } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "Microsoft.VisualStudio.Text.UI.Wpf": "15.0.25824-RC", 4 | "Microsoft.VisualStudio.Language.Intellisense": "15.0.25824-RC", 5 | "Microsoft.VisualStudio.Imaging.Interop.14.0.DesignTime": "15.0.25726-Preview5" 6 | }, 7 | "frameworks": { 8 | "net46": { } 9 | }, 10 | "runtimes": { 11 | "win": { } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Roslyn.Internal/VBHelpers/SyntaxNodeExtensions.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.CodeAnalysis; 2 | 3 | namespace dnSpy.Roslyn.Internal.VBHelpers { 4 | static class SyntaxNodeExtensions2 { 5 | public static TNode GetAncestorOrThis(this SyntaxNode node) where TNode : SyntaxNode => Microsoft.CodeAnalysis.Shared.Extensions.SyntaxNodeExtensions.GetAncestorOrThis(node); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Contracts.DnSpy/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "Microsoft.VisualStudio.Text.UI.Wpf": "15.0.25824-RC", 4 | "Microsoft.VisualStudio.Language.Intellisense": "15.0.25824-RC", 5 | "Microsoft.VisualStudio.Imaging.Interop.14.0.DesignTime": "15.0.25726-Preview5" 6 | }, 7 | "frameworks": { 8 | "net46": { } 9 | }, 10 | "runtimes": { 11 | "win": { } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Roslyn.Internal/VBHelpers/SyntaxTokenExtensions.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Microsoft.CodeAnalysis; 3 | 4 | namespace dnSpy.Roslyn.Internal.VBHelpers { 5 | static class SyntaxTokenExtensions2 { 6 | public static T GetAncestor(this SyntaxToken token, Func predicate = null) where T : SyntaxNode => Microsoft.CodeAnalysis.Shared.Extensions.SyntaxTokenExtensions.GetAncestor(token, predicate); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Extensions/dnSpy.Scripting.Roslyn/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "System.ValueTuple": "4.3.0", 4 | "Microsoft.CodeAnalysis.CSharp.Scripting": "2.0.0-rc2", 5 | "Microsoft.VisualStudio.Text.UI.Wpf": "15.0.25824-RC", 6 | // Required after updating to 2.0.0-rc 7 | "System.Runtime.InteropServices.RuntimeInformation": "4.0.0" 8 | }, 9 | "frameworks": { 10 | "net46": { } 11 | }, 12 | "runtimes": { 13 | "win": { } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /appveyor.yml: -------------------------------------------------------------------------------- 1 | version: x.x.{build} 2 | branches: 3 | only: 4 | - master 5 | image: Visual Studio 2015 6 | configuration: Release 7 | install: 8 | - cmd: git submodule update --init --recursive 9 | nuget: 10 | disable_publish_on_pr: true 11 | before_build: 12 | - cmd: appveyor-retry nuget restore 13 | build: 14 | project: dnSpy.sln 15 | parallel: true 16 | verbosity: normal 17 | artifacts: 18 | - path: dnSpy/dnSpy/bin/Release 19 | name: dnSpy -------------------------------------------------------------------------------- /dnSpy/dnSpy.Roslyn.Shared/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "Microsoft.CodeAnalysis.CSharp.Features": "2.0.0-rc2", 4 | "Microsoft.CodeAnalysis.VisualBasic.Features": "2.0.0-rc2", 5 | "Microsoft.VisualStudio.Text.UI.Wpf": "15.0.25824-RC", 6 | "Microsoft.VisualStudio.Language.Intellisense": "15.0.25824-RC", 7 | "Microsoft.VisualStudio.Imaging.Interop.14.0.DesignTime": "15.0.25726-Preview5" 8 | }, 9 | "frameworks": { 10 | "net46": { } 11 | }, 12 | "runtimes": { 13 | "win": { } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Roslyn.Internal/VBHelpers/TextLineExtensions.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.CodeAnalysis.Text; 2 | 3 | namespace dnSpy.Roslyn.Internal.VBHelpers { 4 | static class TextLineExtensions2 { 5 | public static int? GetLastNonWhitespacePosition(this TextLine line) => Microsoft.CodeAnalysis.Shared.Extensions.TextLineExtensions.GetLastNonWhitespacePosition(line); 6 | public static int? GetFirstNonWhitespacePosition(this TextLine line) => Microsoft.CodeAnalysis.Shared.Extensions.TextLineExtensions.GetFirstNonWhitespacePosition(line); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | indent_style = tab 5 | indent_size = 4 6 | insert_final_newline = true 7 | 8 | [App.config] 9 | 10 | [*.yml] 11 | indent_style = space 12 | indent_size = 2 13 | 14 | [*.{proj,csproj,vbproj,props,targets,resx,vsixmanifest}] 15 | indent_style = space 16 | indent_size = 2 17 | 18 | [app.manifest] 19 | indent_style = space 20 | indent_size = 2 21 | 22 | [*.xaml] 23 | indent_style = space 24 | 25 | [*.cs] 26 | #TODO: https://github.com/dotnet/roslyn/pull/15020 27 | #TODO: https://github.com/dotnet/roslyn/pull/15029 28 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Roslyn.Internal/QuickInfo/IQuickInfoProvider.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 2 | 3 | using System.Threading; 4 | using System.Threading.Tasks; 5 | using Microsoft.CodeAnalysis; 6 | 7 | namespace dnSpy.Roslyn.Internal.QuickInfo 8 | { 9 | internal interface IQuickInfoProvider 10 | { 11 | Task GetItemAsync(Document document, int position, CancellationToken cancellationToken); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Resources; 3 | using System.Runtime.InteropServices; 4 | 5 | [assembly: AssemblyTitle("dnSpy")] 6 | [assembly: AssemblyDescription("")] 7 | [assembly: AssemblyConfiguration("")] 8 | [assembly: AssemblyCompany("")] 9 | [assembly: AssemblyProduct("dnSpy")] 10 | [assembly: AssemblyCopyright("Copyright (C) 2014-2016 de4dot@gmail.com")] 11 | [assembly: AssemblyTrademark("")] 12 | [assembly: AssemblyCulture("")] 13 | [assembly: ComVisible(false)] 14 | [assembly: NeutralResourcesLanguage("en")] 15 | -------------------------------------------------------------------------------- /Extensions/Examples/Example1.Extension/README.md: -------------------------------------------------------------------------------- 1 | 2 | This extension shows how to do the basic things. It: 3 | 4 | - Reads and writes settings (MySettings.cs) 5 | - Adds a page to the options dialog box showing some of the options (MySettingsPage.cs) 6 | - Adds options to the text editor's context menu and a Ctrl+Alt+Q keyboard shortcut (CodeCtxMenus.cs) 7 | - Adds treeview context menus (TreeViewCtxMenus.cs) 8 | - Adds a "_Extension" menu and menu items and a View menu command (MainMenuCommands.cs) 9 | - Adds a button and a combobox to the toolbar (ToolBarCommands.cs) 10 | -------------------------------------------------------------------------------- /dnSpy/dnSpy-x86/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Resources; 3 | using System.Runtime.InteropServices; 4 | 5 | [assembly: AssemblyTitle("dnSpy-x86")] 6 | [assembly: AssemblyDescription("")] 7 | [assembly: AssemblyConfiguration("")] 8 | [assembly: AssemblyCompany("")] 9 | [assembly: AssemblyProduct("dnSpy-x86")] 10 | [assembly: AssemblyCopyright("Copyright (C) 2014-2016 de4dot@gmail.com")] 11 | [assembly: AssemblyTrademark("")] 12 | [assembly: AssemblyCulture("")] 13 | [assembly: ComVisible(false)] 14 | [assembly: NeutralResourcesLanguage("en")] 15 | -------------------------------------------------------------------------------- /Extensions/dnSpy.Debugger/dndbg/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Resources; 3 | using System.Runtime.InteropServices; 4 | 5 | [assembly: AssemblyTitle("dndbg")] 6 | [assembly: AssemblyDescription("")] 7 | [assembly: AssemblyConfiguration("")] 8 | [assembly: AssemblyCompany("")] 9 | [assembly: AssemblyProduct("dndbg")] 10 | [assembly: AssemblyCopyright("Copyright (C) 2014-2016 de4dot@gmail.com")] 11 | [assembly: AssemblyTrademark("")] 12 | [assembly: AssemblyCulture("")] 13 | [assembly: ComVisible(false)] 14 | [assembly: NeutralResourcesLanguage("en")] 15 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Resources; 3 | using System.Runtime.InteropServices; 4 | 5 | [assembly: AssemblyTitle("AsmEditor")] 6 | [assembly: AssemblyDescription("")] 7 | [assembly: AssemblyConfiguration("")] 8 | [assembly: AssemblyCompany("")] 9 | [assembly: AssemblyProduct("AsmEditor")] 10 | [assembly: AssemblyCopyright("Copyright (C) 2014-2016 de4dot@gmail.com")] 11 | [assembly: AssemblyTrademark("")] 12 | [assembly: AssemblyCulture("")] 13 | [assembly: ComVisible(false)] 14 | [assembly: NeutralResourcesLanguage("en")] 15 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Console/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Resources; 3 | using System.Runtime.InteropServices; 4 | 5 | [assembly: AssemblyTitle("dnSpy.Console")] 6 | [assembly: AssemblyDescription("")] 7 | [assembly: AssemblyConfiguration("")] 8 | [assembly: AssemblyCompany("")] 9 | [assembly: AssemblyProduct("dnSpy.Console")] 10 | [assembly: AssemblyCopyright("Copyright (C) 2014-2016 de4dot@gmail.com")] 11 | [assembly: AssemblyTrademark("")] 12 | [assembly: AssemblyCulture("")] 13 | [assembly: ComVisible(false)] 14 | [assembly: NeutralResourcesLanguage("en")] 15 | -------------------------------------------------------------------------------- /Extensions/dnSpy.BamlDecompiler/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Resources; 3 | using System.Runtime.InteropServices; 4 | 5 | [assembly: AssemblyTitle("dnSpy.BamlDecompiler")] 6 | [assembly: AssemblyDescription("")] 7 | [assembly: AssemblyConfiguration("")] 8 | [assembly: AssemblyCompany("")] 9 | [assembly: AssemblyProduct("dnSpy.BamlDecompiler")] 10 | [assembly: AssemblyCopyright("Copyright © Ki 2015")] 11 | [assembly: AssemblyTrademark("")] 12 | [assembly: AssemblyCulture("")] 13 | [assembly: ComVisible(false)] 14 | [assembly: NeutralResourcesLanguage("en")] 15 | -------------------------------------------------------------------------------- /Extensions/dnSpy.Debugger/dnSpy.Debugger/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Resources; 3 | using System.Runtime.InteropServices; 4 | 5 | [assembly: AssemblyTitle("Debugger")] 6 | [assembly: AssemblyDescription("")] 7 | [assembly: AssemblyConfiguration("")] 8 | [assembly: AssemblyCompany("")] 9 | [assembly: AssemblyProduct("Debugger")] 10 | [assembly: AssemblyCopyright("Copyright (C) 2014-2016 de4dot@gmail.com")] 11 | [assembly: AssemblyTrademark("")] 12 | [assembly: AssemblyCulture("")] 13 | [assembly: ComVisible(false)] 14 | [assembly: NeutralResourcesLanguage("en")] 15 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Roslyn.Internal/QuickInfo/PredefinedQuickInfoProviderNames.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 2 | 3 | namespace dnSpy.Roslyn.Internal.QuickInfo 4 | { 5 | internal static class PredefinedQuickInfoProviderNames 6 | { 7 | public const string EventHookup = "Event Hookup QuickInfo Source"; 8 | public const string Semantic = "Semantic Quick Info Provider"; 9 | public const string Syntactic = "Syntactic Quick Info Provider"; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Extensions/dnSpy.Analyzer/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Resources; 3 | using System.Runtime.InteropServices; 4 | 5 | [assembly: AssemblyTitle("Analyzer")] 6 | [assembly: AssemblyDescription("")] 7 | [assembly: AssemblyConfiguration("")] 8 | [assembly: AssemblyCompany("")] 9 | [assembly: AssemblyProduct("Analyzer")] 10 | [assembly: AssemblyCopyright("Copyright 2011-2014 AlphaSierraPapa for the SharpDevelop Team")] 11 | [assembly: AssemblyTrademark("")] 12 | [assembly: AssemblyCulture("")] 13 | [assembly: ComVisible(false)] 14 | [assembly: NeutralResourcesLanguage("en")] 15 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Contracts.Logic/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Resources; 3 | using System.Runtime.InteropServices; 4 | 5 | [assembly: AssemblyTitle("dnSpy.Contracts.Logic")] 6 | [assembly: AssemblyDescription("")] 7 | [assembly: AssemblyConfiguration("")] 8 | [assembly: AssemblyCompany("")] 9 | [assembly: AssemblyProduct("dnSpy.Contracts.Logic")] 10 | [assembly: AssemblyCopyright("Copyright (C) 2014-2016 de4dot@gmail.com")] 11 | [assembly: AssemblyTrademark("")] 12 | [assembly: AssemblyCulture("")] 13 | [assembly: ComVisible(false)] 14 | [assembly: NeutralResourcesLanguage("en")] 15 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/MainApp/App.xaml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Roslyn.EditorFeatures/Extensions/DocumentHelpers.cs: -------------------------------------------------------------------------------- 1 | using System.Threading; 2 | using Microsoft.CodeAnalysis; 3 | 4 | namespace dnSpy.Roslyn.EditorFeatures.Extensions { 5 | static class DocumentHelpers { 6 | public static SyntaxTree GetSyntaxTreeSynchronously(Document document, CancellationToken cancellationToken) { 7 | //TODO: Roslyn 2.0: use document.GetSyntaxTreeSynchronously() 8 | SyntaxTree syntaxTree; 9 | if (document.TryGetSyntaxTree(out syntaxTree)) 10 | return syntaxTree; 11 | return document.GetSyntaxTreeAsync(cancellationToken).GetAwaiter().GetResult(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Extensions/dnSpy.Scripting.Roslyn/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Resources; 3 | using System.Runtime.InteropServices; 4 | 5 | [assembly: AssemblyTitle("dnSpy.Scripting.Roslyn")] 6 | [assembly: AssemblyDescription("")] 7 | [assembly: AssemblyConfiguration("")] 8 | [assembly: AssemblyCompany("")] 9 | [assembly: AssemblyProduct("dnSpy.Scripting.Roslyn")] 10 | [assembly: AssemblyCopyright("Copyright (C) 2014-2016 de4dot@gmail.com")] 11 | [assembly: AssemblyTrademark("")] 12 | [assembly: AssemblyCulture("")] 13 | [assembly: ComVisible(false)] 14 | [assembly: NeutralResourcesLanguage("en")] 15 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/LicenseInfo/CREDITS.txt: -------------------------------------------------------------------------------- 1 | dnSpy credits: 2 | 3 | 0xd4d 4 | Ki 5 | 6 | 7 | ILSpy decompiler and analyzer credits: 8 | 9 | Daniel Grunwald 10 | David Srbecky 11 | Ed Harvey 12 | Siegfried Pammer 13 | Artur Zgodzinski 14 | Eusebiu Marcu 15 | Pent Ploompuu 16 | Ki 17 | 0xd4d 18 | 19 | 20 | Translators: 21 | 22 | Chinese Simplified: 23 | 24 | Ulysses Wu 25 | YanJun Sun 26 | iFish 27 | SquallATF 28 | linkinshi 29 | 30 | Russian: 31 | 32 | Igor Besedin 33 | Konctantin 34 | Daniil Yarancev 35 | 36 | Portuguese: 37 | 38 | Raphael Aquiles 39 | 40 | German: 41 | 42 | patricksadowski 43 | li0nsar3c00l 44 | -------------------------------------------------------------------------------- /Extensions/ILSpy.Decompiler/dnSpy.Decompiler.ILSpy/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Resources; 3 | using System.Runtime.InteropServices; 4 | 5 | [assembly: AssemblyTitle("dnSpy.Decompiler.ILSpy.x")] 6 | [assembly: AssemblyDescription("")] 7 | [assembly: AssemblyConfiguration("")] 8 | [assembly: AssemblyCompany("")] 9 | [assembly: AssemblyProduct("dnSpy.Decompiler.ILSpy.x")] 10 | [assembly: AssemblyCopyright("Copyright (C) 2014-2016 de4dot@gmail.com")] 11 | [assembly: AssemblyTrademark("")] 12 | [assembly: AssemblyCulture("")] 13 | [assembly: ComVisible(false)] 14 | [assembly: NeutralResourcesLanguage("en")] 15 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Roslyn.Internal/QuickInfo/QuickInfoItem.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 2 | 3 | using Microsoft.CodeAnalysis.Text; 4 | 5 | namespace dnSpy.Roslyn.Internal.QuickInfo 6 | { 7 | internal class QuickInfoItem 8 | { 9 | public TextSpan TextSpan { get; } 10 | public QuickInfoContent Content { get; } 11 | 12 | public QuickInfoItem(TextSpan textSpan, QuickInfoContent content) 13 | { 14 | this.TextSpan = textSpan; 15 | this.Content = content; 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Roslyn.EditorFeatures/EditorFeaturesResources.cs: -------------------------------------------------------------------------------- 1 | // The strings resources is an empty class because we don't need the strings at the moment. 2 | // They're currently passed to IWaitIndicator which ignore them. 3 | 4 | namespace dnSpy.Roslyn.EditorFeatures { 5 | static class EditorFeaturesResources { 6 | public static string Finding_enclosing_span { get; internal set; } 7 | public static string Finding_span_of_next_sibling { get; internal set; } 8 | public static string Finding_span_of_previous_sibling { get; internal set; } 9 | public static string Finding_word_extent { get; internal set; } 10 | public static string Text_Navigation { get; internal set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Extensions/Examples/Example2.Extension/TheExtension.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using dnSpy.Contracts.Extension; 3 | 4 | // Each extension should export one class implementing IExtension 5 | 6 | namespace Example2.Extension { 7 | [ExportExtension] 8 | sealed class TheExtension : IExtension { 9 | public IEnumerable MergedResourceDictionaries { 10 | get { 11 | yield return "Themes/resourcedict.xaml"; 12 | } 13 | } 14 | 15 | public ExtensionInfo ExtensionInfo => new ExtensionInfo { 16 | ShortDescription = "Example2 extension", 17 | }; 18 | 19 | public void OnEvent(ExtensionEvent @event, object obj) { 20 | // We don't care about any events 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "Libraries/dnlib"] 2 | path = Libraries/dnlib 3 | url = https://github.com/0xd4d/dnlib.git 4 | [submodule "Plugins/ILSpy.Decompiler/NRefactory"] 5 | path = Extensions/ILSpy.Decompiler/NRefactory 6 | url = https://github.com/0xd4d/nrefactory.git 7 | [submodule "Libraries/ICSharpCode.TreeView"] 8 | path = Libraries/ICSharpCode.TreeView 9 | url = https://github.com/0xd4d/ICSharpCode.TreeView.git 10 | [submodule "Plugins/ILSpy.Decompiler/ICSharpCode.Decompiler"] 11 | path = Extensions/ILSpy.Decompiler/ICSharpCode.Decompiler 12 | url = https://github.com/0xd4d/ILSpy.git 13 | [submodule "dnSpy/dnSpy.Images"] 14 | path = dnSpy/dnSpy.Images 15 | url = https://github.com/0xd4d/dnSpy.Images.git 16 | -------------------------------------------------------------------------------- /Extensions/dnSpy.Scripting.Roslyn/CSharpInteractive.rsp: -------------------------------------------------------------------------------- 1 | # C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\PrivateAssemblies\CSharpInteractive.rsp 2 | /r:System 3 | /r:System.Core 4 | /r:Microsoft.CSharp 5 | /u:System 6 | /u:System.IO 7 | /u:System.Collections.Generic 8 | #/u:System.Console 9 | /u:System.Diagnostics 10 | /u:System.Dynamic 11 | /u:System.Linq 12 | /u:System.Linq.Expressions 13 | /u:System.Text 14 | /u:System.Threading.Tasks 15 | 16 | # Add extra stuff 17 | /r:System.ValueTuple.dll 18 | /r:dnSpy.Contracts.Logic.dll 19 | /r:dnSpy.Contracts.DnSpy.dll 20 | /r:dnlib.dll 21 | /u:dnSpy.Contracts.Scripting 22 | /u:dnSpy.Contracts.Scripting.Roslyn 23 | # For TextColor 24 | /u:dnSpy.Contracts.Text 25 | -------------------------------------------------------------------------------- /Extensions/dnSpy.Scripting.Roslyn/VisualBasicInteractive.rsp: -------------------------------------------------------------------------------- 1 | /R:System 2 | /R:System.Core 3 | /R:System.Data 4 | /R:System.Data.DataSetExtensions 5 | /R:System.Xml 6 | /R:System.Xml.Linq 7 | /Imports:Microsoft.VisualBasic 8 | /Imports:System 9 | /Imports:System.Collections 10 | /Imports:System.Collections.Generic 11 | #/Imports:System.Console 12 | /Imports:System.Data 13 | /Imports:System.Diagnostics 14 | /Imports:System.Linq 15 | /Imports:System.Xml.Linq 16 | 17 | # Add extra stuff 18 | /R:System.ValueTuple.dll 19 | /R:dnSpy.Contracts.Logic.dll 20 | /R:dnSpy.Contracts.DnSpy.dll 21 | /R:dnlib.dll 22 | /Imports:dnSpy.Contracts.Scripting 23 | /Imports:dnSpy.Contracts.Scripting.Roslyn 24 | # For TextColor 25 | /Imports:dnSpy.Contracts.Text 26 | -------------------------------------------------------------------------------- /Extensions/Examples/Example1.Extension/TheExtension.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using dnSpy.Contracts.Extension; 3 | 4 | // Each extension should export one class implementing IExtension 5 | 6 | namespace Example1.Extension { 7 | [ExportExtension] 8 | sealed class TheExtension : IExtension { 9 | public IEnumerable MergedResourceDictionaries { 10 | get { 11 | // We don't have any extra resource dictionaries 12 | yield break; 13 | } 14 | } 15 | 16 | public ExtensionInfo ExtensionInfo => new ExtensionInfo { 17 | ShortDescription = "Example1 extension", 18 | }; 19 | 20 | public void OnEvent(ExtensionEvent @event, object obj) { 21 | // We don't care about any events 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Roslyn.EditorFeatures/Host/IWaitContext.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 2 | 3 | using System; 4 | using System.Threading; 5 | using Microsoft.CodeAnalysis.Shared.Utilities; 6 | 7 | namespace dnSpy.Roslyn.EditorFeatures.Host 8 | { 9 | internal enum WaitIndicatorResult 10 | { 11 | Completed, 12 | Canceled, 13 | } 14 | 15 | internal interface IWaitContext : IDisposable 16 | { 17 | CancellationToken CancellationToken { get; } 18 | 19 | bool AllowCancel { get; set; } 20 | string Message { get; set; } 21 | 22 | IProgressTracker ProgressTracker { get; } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Roslyn.Internal/VBHelpers/SyntaxTreeExtensions.cs: -------------------------------------------------------------------------------- 1 | using System.Threading; 2 | using Microsoft.CodeAnalysis; 3 | 4 | namespace dnSpy.Roslyn.Internal.VBHelpers { 5 | static class SyntaxTreeExtensions2 { 6 | public static SyntaxToken FindTokenOnLeftOfPosition( 7 | this SyntaxTree syntaxTree, 8 | int position, 9 | CancellationToken cancellationToken, 10 | bool includeSkipped = true, 11 | bool includeDirectives = false, 12 | bool includeDocumentationComments = false) => 13 | Microsoft.CodeAnalysis.Shared.Extensions.SyntaxTreeExtensions.FindTokenOnLeftOfPosition( 14 | syntaxTree, 15 | position, 16 | cancellationToken, 17 | includeSkipped, 18 | includeDirectives, 19 | includeDocumentationComments); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Roslyn.EditorFeatures/Editor/ContentTypeNames.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 2 | 3 | namespace dnSpy.Roslyn.EditorFeatures.Editor 4 | { 5 | internal static class ContentTypeNames 6 | { 7 | public const string CSharpContentType = "CSharp"; 8 | public const string CSharpSignatureHelpContentType = "CSharp Signature Help"; 9 | public const string RoslynContentType = "Roslyn Languages"; 10 | public const string VisualBasicContentType = "Basic"; 11 | public const string VisualBasicSignatureHelpContentType = "Basic Signature Help"; 12 | public const string XamlContentType = "XAML"; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Extensions/Examples/Example1.Extension/MySettingsControl.xaml: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /Extensions/Examples/Example2.Extension/README.md: -------------------------------------------------------------------------------- 1 | 2 | This extension shows how to do more advanced stuff. It: 3 | 4 | - Adds a tool window (ToolWindowContent.cs) 5 | - Adds new tree nodes (TreeNodeDataProvider.cs) 6 | - Adds custom tab content for the new AssemblyChildNode tree node (AssemblyChildNodeTabContent.cs). ModuleChildNode implements IDecompileSelf to decompile itself. 7 | - Shows tooltips when hovering over custom references added to the text editor (DocumentViewerToolTipProvider.cs) 8 | - Adds a new IDsDocument instance and DsDocumentNode node (NewDsDocument.cs). It opens .txt files and shows the output in the text editor. 9 | - Colorizes text in text editors (Colorizer.cs) 10 | - Colorizes text in hex editors (HexColorizer.cs) 11 | - Colorizes Assembly Explorer treeview nodes (TreeViewNodeColorizer.cs) 12 | - Adds a new Output window text pane (OutputTextPane.cs) 13 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/LicenseInfo/LICENSE.txt: -------------------------------------------------------------------------------- 1 | dnSpy is released under the GPLv3 license, see GPLv3.txt for more information. 2 | 3 | Copyright (C) 2014-2016 de4dot@gmail.com 4 | 5 | This file is part of dnSpy 6 | 7 | dnSpy is free software: you can redistribute it and/or modify 8 | it under the terms of the GNU General Public License as published by 9 | the Free Software Foundation, either version 3 of the License, or 10 | (at your option) any later version. 11 | 12 | dnSpy is distributed in the hope that it will be useful, 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | GNU General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with dnSpy. If not, see . 19 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Roslyn.Internal/QuickInfo/CSharp/SemanticQuickInfoProvider.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 2 | 3 | using System.Composition; 4 | using Microsoft.CodeAnalysis; 5 | using Microsoft.CodeAnalysis.CSharp; 6 | 7 | namespace dnSpy.Roslyn.Internal.QuickInfo.CSharp 8 | { 9 | [ExportQuickInfoProvider(PredefinedQuickInfoProviderNames.Semantic, LanguageNames.CSharp)] 10 | internal class SemanticQuickInfoProvider : AbstractSemanticQuickInfoProvider 11 | { 12 | [ImportingConstructor] 13 | public SemanticQuickInfoProvider() 14 | { 15 | } 16 | 17 | protected override bool ShouldCheckPreviousToken(SyntaxToken token) 18 | { 19 | return !token.Parent.IsKind(SyntaxKind.XmlCrefAttribute); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/Text/Editor/ReplBufferKind.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.Text.Editor { 21 | enum ReplBufferKind { 22 | Output, 23 | Code, 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Roslyn.Internal/Extensions/EnumerableExtensions.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 2 | 3 | using System; 4 | using System.Collections; 5 | using System.Collections.Generic; 6 | using System.Collections.ObjectModel; 7 | using System.Diagnostics; 8 | using System.Linq; 9 | 10 | namespace dnSpy.Roslyn.Internal.Extensions { 11 | static class EnumerableExtensions2 { 12 | private static readonly Func s_notNullTest = x => x != null; 13 | 14 | public static IEnumerable WhereNotNull(this IEnumerable source) 15 | where T : class 16 | { 17 | if (source == null) 18 | { 19 | return Array.Empty(); 20 | } 21 | 22 | return source.Where((Func)s_notNullTest); 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Extensions/dnSpy.Analyzer/TreeNodes/IAsyncCancellable.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.Analyzer.TreeNodes { 21 | interface IAsyncCancellable { 22 | void Cancel(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/SaveModule/SaveOptionsType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.AsmEditor.SaveModule { 21 | enum SaveOptionsType { 22 | Module, 23 | Hex, 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/MethodBody/MethodBodyType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.AsmEditor.MethodBody { 21 | enum MethodBodyType { 22 | None, 23 | Cil, 24 | Native, 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Roslyn.VisualBasic.EditorFeatures/Dummy.vb: -------------------------------------------------------------------------------- 1 | ' Copyright (C) 2014-2016 de4dot@gmail.com 2 | ' 3 | ' This file is part of dnSpy 4 | ' 5 | ' dnSpy is free software: you can redistribute it and/or modify 6 | ' it under the terms of the GNU General Public License as published by 7 | ' the Free Software Foundation, either version 3 of the License, or 8 | ' (at your option) any later version. 9 | ' 10 | ' dnSpy is distributed in the hope that it will be useful, 11 | ' but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | ' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | ' GNU General Public License for more details. 14 | ' 15 | ' You should have received a copy of the GNU General Public License 16 | ' along with dnSpy. If not, see . 17 | 18 | ' Dummy class referenced by dnSpy so it can add this assembly to the MEF AggregateCatalog 19 | Module Dummy 20 | End Module 21 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/Commands/IIndexedItem.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.AsmEditor.Commands { 21 | interface IIndexedItem { 22 | int Index { get; set; } 23 | IIndexedItem Clone(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /dnSpy/dnSpy-x86/Program.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using System; 21 | 22 | namespace dnSpy_x86 { 23 | static class Program { 24 | [STAThread] 25 | static void Main() => dnSpy.MainApp.StartUpClass.Main(); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/UndoRedo/IUndoObject.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.AsmEditor.UndoRedo { 21 | interface IUndoObject { 22 | bool IsDirty { get; set; } 23 | int SavedCommand { get; set; } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Extensions/dnSpy.Debugger/dnSpy.Debugger/Exceptions/ExceptionType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.Debugger.Exceptions { 21 | enum ExceptionType { 22 | DotNet, 23 | 24 | // Must be last 25 | Last, 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Extensions/dnSpy.Debugger/dnSpy.Debugger/IModuleIdHolder.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Contracts.Metadata; 21 | 22 | namespace dnSpy.Debugger { 23 | interface IModuleIdHolder { 24 | ModuleId ModuleId { get; } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Roslyn.EditorFeatures/Dummy.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.Roslyn.EditorFeatures { 21 | // Dummy class referenced by dnSpy so it can add this assembly to the MEF AggregateCatalog 22 | static class Dummy { } 23 | } 24 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Contracts.DnSpy/Documents/IDsDocumentNameKey.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.Contracts.Documents { 21 | /// 22 | /// A document name key 23 | /// 24 | public interface IDsDocumentNameKey { 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Contracts.DnSpy/Documents/IDsDotNetDocument.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.Contracts.Documents { 21 | /// 22 | /// A .NET file 23 | /// 24 | public interface IDsDotNetDocument : IDsDocument { 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/Hex/Files/DotNet/IDotNetHeap.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Contracts.Hex.Files.DotNet; 21 | 22 | namespace dnSpy.Hex.Files.DotNet { 23 | interface IDotNetHeap { 24 | void SetMetadata(DotNetMetadataHeaders metadata); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Contracts.DnSpy/Hex/Files/IBufferFileHeaders.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.Contracts.Hex.Files { 21 | /// 22 | /// Buffer file headers iface 23 | /// 24 | public interface IBufferFileHeaders { 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/MainApp/AskDlg.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Contracts.Controls; 21 | 22 | namespace dnSpy.MainApp { 23 | sealed partial class AskDlg : WindowBase { 24 | public AskDlg() { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Contracts.DnSpy/Text/LineConstants.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.Contracts.Text { 21 | static class LineConstants { 22 | public static readonly char[] newLineChars = new char[] { '\r', '\n', '\u0085', '\u2028', '\u2029' }; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/Documents/Tabs/DocViewer/Settings/IDocumentViewerOptions.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Text.Settings; 21 | 22 | namespace dnSpy.Documents.Tabs.DocViewer.Settings { 23 | interface IDocumentViewerOptions : ICommonEditorOptions { 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/Output/Settings/IOutputWindowOptions.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Text.Settings; 21 | 22 | namespace dnSpy.Output.Settings { 23 | interface IOutputWindowOptions : ICommonEditorOptions { 24 | bool ShowTimestamps { get; set; } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/Settings/AppearanceCategory/ITextAppearanceCategoryService.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.Settings.AppearanceCategory { 21 | interface ITextAppearanceCategoryService { 22 | ITextAppearanceCategory GetSettings(string category); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/Output/OutputControl.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using System.Windows.Controls; 21 | 22 | namespace dnSpy.Output { 23 | sealed partial class OutputControl : UserControl { 24 | public OutputControl() { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/Text/Formatting/ITextFormatterProvider.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using System.Windows.Media.TextFormatting; 21 | 22 | namespace dnSpy.Text.Formatting { 23 | interface ITextFormatterProvider { 24 | TextFormatter Create(bool useDisplayMode); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Contracts.DnSpy/Scripting/Debugger/IILBreakpoint.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.Contracts.Scripting.Debugger { 21 | /// 22 | /// IL code breakpoint 23 | /// 24 | public interface IILBreakpoint : ICodeBreakpoint { 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/Text/Repl/IReplOptions.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using System; 21 | using dnSpy.Text.Settings; 22 | 23 | namespace dnSpy.Text.Repl { 24 | interface IReplOptions : ICommonEditorOptions { 25 | Guid Guid { get; } 26 | string LanguageName { get; } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Contracts.DnSpy/Hex/Editor/HexAdornmentLayerDefinition.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.Contracts.Hex.Editor { 21 | /// 22 | /// Defines an adornment layer 23 | /// 24 | public sealed class HexAdornmentLayerDefinition { 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/MainApp/DsLoaderControl.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using System.Windows.Controls; 21 | 22 | namespace dnSpy.MainApp { 23 | sealed partial class DsLoaderControl : UserControl { 24 | public DsLoaderControl() { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/SaveModule/SaveSingleModuleDlg.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.AsmEditor.SaveModule { 21 | sealed partial class SaveSingleModuleDlg : SaveModuleWindow { 22 | public SaveSingleModuleDlg() { 23 | InitializeComponent(); 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Contracts.DnSpy/Scripting/Debugger/INativeBreakpoint.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.Contracts.Scripting.Debugger { 21 | /// 22 | /// Native code breakpoint 23 | /// 24 | public interface INativeBreakpoint : ICodeBreakpoint { 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/Hex/Commands/HexCommandConstants.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using System; 21 | 22 | namespace dnSpy.Hex.Commands { 23 | static class HexCommandConstants { 24 | public static readonly Guid HexCommandGroup = new Guid("34CF3497-0D2C-467F-90A1-998DF1510841"); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Contracts.DnSpy/Scripting/Debugger/IAnyEventBreakpoint.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.Contracts.Scripting.Debugger { 21 | /// 22 | /// Any debug event breakpoint 23 | /// 24 | public interface IAnyEventBreakpoint : IBreakpoint { 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Decompiler/MSBuild/IJob.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.Decompiler.MSBuild { 21 | interface IJob { 22 | string Description { get; } 23 | void Create(DecompileContext ctx); 24 | } 25 | 26 | interface IFileJob : IJob { 27 | string Filename { get; } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Decompiler/MSBuild/ProjectVersion.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.Decompiler.MSBuild { 21 | enum ProjectVersion { 22 | // VS2003 uses a different project format 23 | VS2005, 24 | VS2008, 25 | VS2010, 26 | VS2012, 27 | VS2013, 28 | VS2015, 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/Resources/ResourceDlg.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Contracts.Controls; 21 | 22 | namespace dnSpy.AsmEditor.Resources { 23 | sealed partial class ResourceDlg : WindowBase { 24 | public ResourceDlg() { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/Hex/Commands/LocalSettingsDlg.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Contracts.Controls; 21 | 22 | namespace dnSpy.Hex.Commands { 23 | sealed partial class LocalSettingsDlg : WindowBase { 24 | public LocalSettingsDlg() { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/Hex/Editor/Search/SearchControl.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using System.Windows.Controls; 21 | 22 | namespace dnSpy.Hex.Editor.Search { 23 | sealed partial class SearchControl : UserControl { 24 | public SearchControl() { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/Settings/Dialog/AppSettingsDlg.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Contracts.Controls; 21 | 22 | namespace dnSpy.Settings.Dialog { 23 | sealed partial class AppSettingsDlg : WindowBase { 24 | public AppSettingsDlg() { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/Text/Editor/IAdornmentLayerDefinitionService.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Text.MEF; 21 | 22 | namespace dnSpy.Text.Editor { 23 | interface IAdornmentLayerDefinitionService { 24 | MetadataAndOrder? GetLayerDefinition(string name); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/Text/Editor/Search/SearchControl.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using System.Windows.Controls; 21 | 22 | namespace dnSpy.Text.Editor.Search { 23 | sealed partial class SearchControl : UserControl { 24 | public SearchControl() { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/Field/FieldOptionsDlg.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Contracts.Controls; 21 | 22 | namespace dnSpy.AsmEditor.Field { 23 | sealed partial class FieldOptionsDlg : WindowBase { 24 | public FieldOptionsDlg() { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/Namespace/NamespaceDlg.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Contracts.Controls; 21 | 22 | namespace dnSpy.AsmEditor.Namespace { 23 | sealed partial class NamespaceDlg : WindowBase { 24 | public NamespaceDlg() { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/Resources/ImageListDlg.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Contracts.Controls; 21 | 22 | namespace dnSpy.AsmEditor.Resources { 23 | sealed partial class ImageListDlg : WindowBase { 24 | public ImageListDlg() { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/Types/TypeOptionsDlg.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Contracts.Controls; 21 | 22 | namespace dnSpy.AsmEditor.Types { 23 | sealed partial class TypeOptionsDlg : WindowBase { 24 | public TypeOptionsDlg() { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/Text/CodeEditor/ICodeEditorOptions.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using System; 21 | using dnSpy.Text.Settings; 22 | 23 | namespace dnSpy.Text.CodeEditor { 24 | interface ICodeEditorOptions : ICommonEditorOptions { 25 | Guid Guid { get; } 26 | string LanguageName { get; } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/Text/Editor/IWpfTextViewConnectionListenerServiceProvider.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using Microsoft.VisualStudio.Text.Editor; 21 | 22 | namespace dnSpy.Text.Editor { 23 | interface IWpfTextViewConnectionListenerServiceProvider { 24 | void Create(IWpfTextView wpfTextView); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/Compiler/EditCodeIds.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.AsmEditor.Compiler { 21 | /// 22 | /// Code compiler IDs 23 | /// 24 | enum EditCodeIds { 25 | /// 26 | /// Compiles the code 27 | /// 28 | Compile, 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/DnlibDialogs/MemberRefDlg.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Contracts.Controls; 21 | 22 | namespace dnSpy.AsmEditor.DnlibDialogs { 23 | sealed partial class MemberRefDlg : WindowBase { 24 | public MemberRefDlg() { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/DnlibDialogs/ParamDefDlg.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Contracts.Controls; 21 | 22 | namespace dnSpy.AsmEditor.DnlibDialogs { 23 | sealed partial class ParamDefDlg : WindowBase { 24 | public ParamDefDlg() { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/Method/MethodOptionsDlg.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Contracts.Controls; 21 | 22 | namespace dnSpy.AsmEditor.Method { 23 | sealed partial class MethodOptionsDlg : WindowBase { 24 | public MethodOptionsDlg() { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/MethodBody/MethodBodyDlg.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Contracts.Controls; 21 | 22 | namespace dnSpy.AsmEditor.MethodBody { 23 | sealed partial class MethodBodyDlg : WindowBase { 24 | public MethodBodyDlg() { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Contracts.DnSpy/Documents/IDsPEDocument.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.Contracts.Documents { 21 | /// 22 | /// A PE file (NOTE: not a .NET file, see ) 23 | /// 24 | public interface IDsPEDocument : IDsDocument { 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Contracts.DnSpy/Hex/Editor/HexSpaceReservationManagerDefinition.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.Contracts.Hex.Editor { 21 | /// 22 | /// Defines a space reservation manager 23 | /// 24 | public sealed class HexSpaceReservationManagerDefinition { 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/Extension/LoadedExtension.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using System.Reflection; 21 | 22 | namespace dnSpy.Extension { 23 | sealed class LoadedExtension { 24 | public Assembly Assembly { get; } 25 | 26 | public LoadedExtension(Assembly asm) { 27 | Assembly = asm; 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/Hex/Editor/HexSpaceReservationStackProvider.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Contracts.Hex.Editor; 21 | 22 | namespace dnSpy.Hex.Editor { 23 | abstract class HexSpaceReservationStackProvider { 24 | public abstract HexSpaceReservationStack Create(WpfHexView wpfHexView); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/DnlibDialogs/ImplMapControl.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using System.Windows.Controls; 21 | 22 | namespace dnSpy.AsmEditor.DnlibDialogs { 23 | sealed partial class ImplMapControl : UserControl { 24 | public ImplMapControl() { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/DnlibDialogs/MethodSpecDlg.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Contracts.Controls; 21 | 22 | namespace dnSpy.AsmEditor.DnlibDialogs { 23 | sealed partial class MethodSpecDlg : WindowBase { 24 | public MethodSpecDlg() { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/DnlibDialogs/ConstantControl.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using System.Windows.Controls; 21 | 22 | namespace dnSpy.AsmEditor.DnlibDialogs { 23 | sealed partial class ConstantControl : UserControl { 24 | public ConstantControl() { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/DnlibDialogs/ConstantTypeDlg.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Contracts.Controls; 21 | 22 | namespace dnSpy.AsmEditor.DnlibDialogs { 23 | sealed partial class ConstantTypeDlg : WindowBase { 24 | public ConstantTypeDlg() { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/DnlibDialogs/DeclSecurityDlg.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Contracts.Controls; 21 | 22 | namespace dnSpy.AsmEditor.DnlibDialogs { 23 | sealed partial class DeclSecurityDlg : WindowBase { 24 | public DeclSecurityDlg() { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/DnlibDialogs/GenericParamDlg.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Contracts.Controls; 21 | 22 | namespace dnSpy.AsmEditor.DnlibDialogs { 23 | sealed partial class GenericParamDlg : WindowBase { 24 | public GenericParamDlg() { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/MethodBody/SwitchOperandDlg.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Contracts.Controls; 21 | 22 | namespace dnSpy.AsmEditor.MethodBody { 23 | sealed partial class SwitchOperandDlg : WindowBase { 24 | public SwitchOperandDlg() { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/Module/NetModuleOptionsDlg.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Contracts.Controls; 21 | 22 | namespace dnSpy.AsmEditor.Module { 23 | sealed partial class NetModuleOptionsDlg : WindowBase { 24 | public NetModuleOptionsDlg() { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/Property/PropertyOptionsDlg.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Contracts.Controls; 21 | 22 | namespace dnSpy.AsmEditor.Property { 23 | sealed partial class PropertyOptionsDlg : WindowBase { 24 | public PropertyOptionsDlg() { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Contracts.DnSpy/Hex/Tagging/HexTag.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.Contracts.Hex.Tagging { 21 | /// 22 | /// Hex tag 23 | /// 24 | public abstract class HexTag { 25 | /// 26 | /// Constructor 27 | /// 28 | protected HexTag() { } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/Hex/Editor/HexAdornmentLayerDefinitionService.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Hex.MEF; 21 | 22 | namespace dnSpy.Hex.Editor { 23 | abstract class HexAdornmentLayerDefinitionService { 24 | public abstract MetadataAndOrder? GetLayerDefinition(string name); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/DnlibDialogs/TypeSigCreatorDlg.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Contracts.Controls; 21 | 22 | namespace dnSpy.AsmEditor.DnlibDialogs { 23 | sealed partial class TypeSigCreatorDlg : WindowBase { 24 | public TypeSigCreatorDlg() { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/Resources/ResourceElementDlg.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Contracts.Controls; 21 | 22 | namespace dnSpy.AsmEditor.Resources { 23 | sealed partial class ResourceElementDlg : WindowBase { 24 | public ResourceElementDlg() { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/Language/Intellisense/CompletionIconVM.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.Language.Intellisense { 21 | sealed class CompletionIconVM { 22 | public object ImageUIObject { get; } 23 | 24 | public CompletionIconVM(object imageUIObject) { 25 | ImageUIObject = imageUIObject; 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/DnlibDialogs/CustomAttributeDlg.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Contracts.Controls; 21 | 22 | namespace dnSpy.AsmEditor.DnlibDialogs { 23 | sealed partial class CustomAttributeDlg : WindowBase { 24 | public CustomAttributeDlg() { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/DnlibDialogs/DeclSecurityControl.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using System.Windows.Controls; 21 | 22 | namespace dnSpy.AsmEditor.DnlibDialogs { 23 | sealed partial class DeclSecurityControl : UserControl { 24 | public DeclSecurityControl() { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/DnlibDialogs/MarshalTypeControl.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using System.Windows.Controls; 21 | 22 | namespace dnSpy.AsmEditor.DnlibDialogs { 23 | sealed partial class MarshalTypeControl : UserControl { 24 | public MarshalTypeControl() { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/DnlibDialogs/MethodSigCreatorDlg.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Contracts.Controls; 21 | 22 | namespace dnSpy.AsmEditor.DnlibDialogs { 23 | sealed partial class MethodSigCreatorDlg : WindowBase { 24 | public MethodSigCreatorDlg() { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/DnlibDialogs/SecurityAttributeDlg.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Contracts.Controls; 21 | 22 | namespace dnSpy.AsmEditor.DnlibDialogs { 23 | sealed partial class SecurityAttributeDlg : WindowBase { 24 | public SecurityAttributeDlg() { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/DnlibDialogs/TypeDefOrRefAndCADlg.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Contracts.Controls; 21 | 22 | namespace dnSpy.AsmEditor.DnlibDialogs { 23 | sealed partial class TypeDefOrRefAndCADlg : WindowBase { 24 | public TypeDefOrRefAndCADlg() { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/DnlibDialogs/CreateTypeSigArrayDlg.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Contracts.Controls; 21 | 22 | namespace dnSpy.AsmEditor.DnlibDialogs { 23 | sealed partial class CreateTypeSigArrayDlg : WindowBase { 24 | public CreateTypeSigArrayDlg() { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/Resources/ImageResourceElementDlg.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Contracts.Controls; 21 | 22 | namespace dnSpy.AsmEditor.Resources { 23 | sealed partial class ImageResourceElementDlg : WindowBase { 24 | public ImageResourceElementDlg() { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Contracts.DnSpy/Themes/ThemeChangedEventArgs.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using System; 21 | 22 | namespace dnSpy.Contracts.Themes { 23 | /// 24 | /// Theme changed event args 25 | /// 26 | public sealed class ThemeChangedEventArgs : EventArgs { 27 | internal ThemeChangedEventArgs() { } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Roslyn.Shared/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Resources; 3 | using System.Runtime.CompilerServices; 4 | using System.Runtime.InteropServices; 5 | 6 | [assembly: AssemblyTitle("dnSpy.Roslyn.Shared")] 7 | [assembly: AssemblyDescription("")] 8 | [assembly: AssemblyConfiguration("")] 9 | [assembly: AssemblyCompany("")] 10 | [assembly: AssemblyProduct("dnSpy.Roslyn.Shared")] 11 | [assembly: AssemblyCopyright("Copyright (C) 2014-2016 de4dot@gmail.com")] 12 | [assembly: AssemblyTrademark("")] 13 | [assembly: AssemblyCulture("")] 14 | [assembly: ComVisible(false)] 15 | [assembly: NeutralResourcesLanguage("en")] 16 | // This is actually dnSpy.Roslyn.EditorFeatures 17 | [assembly: InternalsVisibleTo("Roslyn.Services.Editor.UnitTests, PublicKey=002400000480000094000000060200000024000052534131000400000100010055e0217eb635f69281051f9a823e0c7edd90f28063eb6c7a742a19b4f6139778ee0af438f47aed3b6e9f99838aa8dba689c7a71ddb860c96d923830b57bbd5cd6119406ddb9b002cf1c723bf272d6acbb7129e9d6dd5a5309c94e0ff4b2c884d45a55f475cd7dba59198086f61f5a8c8b5e601c0edbf269733f6f578fc8579c2")] 18 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/Hex/Intellisense/HexQuickInfoPresenterControl.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using System.Windows.Controls; 21 | 22 | namespace dnSpy.Hex.Intellisense { 23 | sealed partial class HexQuickInfoPresenterControl : UserControl { 24 | public HexQuickInfoPresenterControl() { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Extensions/ILSpy.Decompiler/dnSpy.Decompiler.ILSpy.Core/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Resources; 3 | using System.Runtime.CompilerServices; 4 | using System.Runtime.InteropServices; 5 | 6 | [assembly: AssemblyTitle("dnSpy.Decompiler.ILSpy.Core")] 7 | [assembly: AssemblyDescription("")] 8 | [assembly: AssemblyConfiguration("")] 9 | [assembly: AssemblyCompany("")] 10 | [assembly: AssemblyProduct("dnSpy.Decompiler.ILSpy.Core")] 11 | [assembly: AssemblyCopyright("Copyright 2011-2014 AlphaSierraPapa for the SharpDevelop Team")] 12 | [assembly: AssemblyTrademark("")] 13 | [assembly: AssemblyCulture("")] 14 | [assembly: ComVisible(false)] 15 | [assembly: NeutralResourcesLanguage("en")] 16 | [assembly: InternalsVisibleTo("dnSpy.Decompiler.ILSpy.x, PublicKey=0024000004800000940000000602000000240000525341310004000001000100858d4f2519af95faeca8d359daa2078b20826765450f330daff3c5ec378adf9eb8e168eff8069ba51e15c1992d0d72b73129ed7a014f62863fa80a80dd9b010b8211c4d4c70ed26b9b65370007b0341685c98cc4cd2d16814d9581db82b382fb8ee838e1b8a2bd1c759e43ddda209e35cde530a7ba6a517787c04a3f283ea1b5")] 17 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/DnlibDialogs/CANamedArgumentsControl.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using System.Windows.Controls; 21 | 22 | namespace dnSpy.AsmEditor.DnlibDialogs { 23 | sealed partial class CANamedArgumentsControl : UserControl { 24 | public CANamedArgumentsControl() { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/DnlibDialogs/TypeDefOrRefAndCAControl.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using System.Windows.Controls; 21 | 22 | namespace dnSpy.AsmEditor.DnlibDialogs { 23 | sealed partial class TypeDefOrRefAndCAControl : UserControl { 24 | public TypeDefOrRefAndCAControl() { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/Hex/Editor/Search/HexDataKind.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.Hex.Editor.Search { 21 | enum HexDataKind { 22 | Bytes, 23 | Utf8String, 24 | Utf16String, 25 | Byte, 26 | SByte, 27 | Int16, 28 | UInt16, 29 | Int32, 30 | UInt32, 31 | Int64, 32 | UInt64, 33 | Single, 34 | Double, 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/Language/Intellisense/CompletionPresenterControl.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using System.Windows.Controls; 21 | 22 | namespace dnSpy.Language.Intellisense { 23 | sealed partial class CompletionPresenterControl : UserControl { 24 | public CompletionPresenterControl() { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/Language/Intellisense/QuickInfoPresenterControl.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using System.Windows.Controls; 21 | 22 | namespace dnSpy.Language.Intellisense { 23 | sealed partial class QuickInfoPresenterControl : UserControl { 24 | public QuickInfoPresenterControl() { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/DnlibDialogs/CreateTypeSigArrayControl.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using System.Windows.Controls; 21 | 22 | namespace dnSpy.AsmEditor.DnlibDialogs { 23 | sealed partial class CreateTypeSigArrayControl : UserControl { 24 | public CreateTypeSigArrayControl() { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/ExtensionMethods.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using System.Collections.Generic; 21 | 22 | namespace dnSpy.AsmEditor { 23 | static class ExtensionMethods { 24 | public static void AddRange(this ICollection coll, IEnumerable data) { 25 | foreach (var d in data) 26 | coll.Add(d); 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/Module/NetModuleOptions.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using System; 21 | using dnlib.DotNet; 22 | 23 | namespace dnSpy.AsmEditor.Module { 24 | sealed class NetModuleOptions { 25 | public UTF8String Name { get; set; } 26 | public ClrVersion ClrVersion { get; set; } 27 | public Guid Mvid { get; set; } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Extensions/dnSpy.BamlDecompiler/BamlSettings.xaml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/Hex/Editor/MetadataAndOrder.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.Hex.Editor { 21 | struct MetadataAndOrder { 22 | public TMetadata Metadata { get; } 23 | public int Order { get; } 24 | public MetadataAndOrder(TMetadata metadata, int order) { 25 | Metadata = metadata; 26 | Order = order; 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/Language/Intellisense/SignatureHelpPresenterControl.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using System.Windows.Controls; 21 | 22 | namespace dnSpy.Language.Intellisense { 23 | sealed partial class SignatureHelpPresenterControl : UserControl { 24 | public SignatureHelpPresenterControl() { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/Text/Editor/MetadataAndOrder.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.Text.Editor { 21 | struct MetadataAndOrder { 22 | public TMetadata Metadata { get; } 23 | public int Order { get; } 24 | public MetadataAndOrder(TMetadata metadata, int order) { 25 | Metadata = metadata; 26 | Order = order; 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Extensions/dnSpy.Debugger/dnSpy.Debugger/ILoadBeforeDebug.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.Debugger { 21 | /// 22 | /// Classes that hook events and must be loaded before we debug, 23 | /// can export and implement this to get auto loaded. 24 | /// 25 | interface ILoadBeforeDebug { 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/Controls/IStackedContentChild.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.Controls { 21 | /// 22 | /// Can be added to a 23 | /// 24 | interface IStackedContentChild { 25 | /// 26 | /// Gets the UI object 27 | /// 28 | object UIObject { get; } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/Text/Repl/AppSettingsPageContainer.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Contracts.Settings.Dialog; 21 | 22 | namespace dnSpy.Text.Repl { 23 | [ExportAppSettingsPageContainer("res:ReplSettings", AppSettingsConstants.GUID_REPL, AppSettingsConstants.ORDER_REPL)] 24 | sealed class AppSettingsPageContainer : IAppSettingsPageContainer { } 25 | } 26 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Contracts.DnSpy/Scripting/Debugger/AttachOptions.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.Contracts.Scripting.Debugger { 21 | /// 22 | /// Attach options 23 | /// 24 | public sealed class AttachOptions { 25 | /// 26 | /// Process ID 27 | /// 28 | public int ProcessId { get; set; } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/Settings/XmlSettingsConstants.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.Settings { 21 | static class XmlSettingsConstants { 22 | public const string XML_ROOT_NAME = "settings"; 23 | public const string SECTION_NAME = "section"; 24 | public const string SECTION_ATTRIBUTE_NAME = "_"; 25 | public const int MAX_CHILD_DEPTH = 100; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Extensions/Examples/Example2.Extension/DocumentViewerToolTipProvider.cs: -------------------------------------------------------------------------------- 1 | using dnSpy.Contracts.Documents.Tabs.DocViewer.ToolTips; 2 | using dnSpy.Contracts.Text; 3 | 4 | namespace Example2.Extension { 5 | // This reference is added to the "decompiled" code by ModuleChildNode.Decompile() 6 | sealed class StringInfoReference { 7 | public string Message { get; } 8 | 9 | public StringInfoReference(string msg) { 10 | Message = msg; 11 | } 12 | } 13 | 14 | // Called by dnSpy to create a tooltip when hovering over a reference in the text editor 15 | [ExportDocumentViewerToolTipProvider] 16 | sealed class DocumentViewerToolTipProvider : IDocumentViewerToolTipProvider { 17 | public object Create(IDocumentViewerToolTipProviderContext context, object @ref) { 18 | // This reference is added to the "decompiled" code by ModuleChildNode.Decompile() 19 | var sref = @ref as StringInfoReference; 20 | if (sref != null) { 21 | var provider = context.Create(); 22 | provider.Output.Write(BoxedTextColor.String, sref.Message); 23 | return provider.Create(); 24 | } 25 | 26 | return null; 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/Commands/AsmEditorContext.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Contracts.Documents.TreeView; 21 | 22 | namespace dnSpy.AsmEditor.Commands { 23 | sealed class AsmEditorContext { 24 | public DocumentTreeNodeData[] Nodes { get; } 25 | 26 | public AsmEditorContext(DocumentTreeNodeData[] nodes) { 27 | Nodes = nodes; 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Extensions/dnSpy.Debugger/dnSpy.Debugger/AppMenus.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Contracts.Menus; 21 | 22 | namespace dnSpy.Debugger { 23 | [ExportMenu(OwnerGuid = MenuConstants.APP_MENU_GUID, Guid = MenuConstants.APP_MENU_DEBUG_GUID, Order = MenuConstants.ORDER_APP_MENU_DEBUG, Header = "res:AppMenu_Debug")] 24 | sealed class DebugMenu : IMenu { 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Decompiler/MSBuild/NoMSBuildProjectWriterLogger.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.Decompiler.MSBuild { 21 | sealed class NoMSBuildProjectWriterLogger : IMSBuildProjectWriterLogger { 22 | public static readonly NoMSBuildProjectWriterLogger Instance = new NoMSBuildProjectWriterLogger(); 23 | 24 | public void Error(string message) { } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/ToolBars/ToolBarItemContext.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using System; 21 | using dnSpy.Contracts.ToolBars; 22 | 23 | namespace dnSpy.ToolBars { 24 | sealed class ToolBarItemContext : IToolBarItemContext { 25 | public Guid ToolBarGuid { get; } 26 | 27 | public ToolBarItemContext(Guid toolBarGuid) { 28 | ToolBarGuid = toolBarGuid; 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Extensions/dnSpy.Debugger/dnSpy.Debugger/Memory/MemoryControl.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using System.Windows.Controls; 21 | 22 | namespace dnSpy.Debugger.Memory { 23 | sealed partial class MemoryControl : UserControl { 24 | public MemoryControl(object content) { 25 | InitializeComponent(); 26 | hexViewContentPresenter.Content = content; 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Extensions/dnSpy.Debugger/dnSpy.Debugger/Breakpoints/DebugEventBreakpoint.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.Debugger.Breakpoints { 21 | sealed class DebugEventBreakpoint : Breakpoint { 22 | public override BreakpointKind Kind => BreakpointKind.DebugEvent; 23 | 24 | public DebugEventBreakpoint(bool isEnabled = true) 25 | : base(isEnabled) { 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Roslyn.EditorFeatures/Host/IWaitIndicator.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 2 | 3 | using System; 4 | 5 | namespace dnSpy.Roslyn.EditorFeatures.Host 6 | { 7 | internal interface IWaitIndicator 8 | { 9 | /// 10 | /// Schedule the action on the caller's thread and wait for the task to complete. 11 | /// 12 | WaitIndicatorResult Wait(string title, string message, bool allowCancel, bool showProgress, Action action); 13 | IWaitContext StartWait(string title, string message, bool allowCancel, bool showProgress); 14 | } 15 | 16 | internal static class IWaitIndicatorExtensions 17 | { 18 | public static WaitIndicatorResult Wait( 19 | this IWaitIndicator waitIndicator, string title, string message, bool allowCancel, Action action) 20 | { 21 | return waitIndicator.Wait(title, message, allowCancel, showProgress: false, action: action); 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Roslyn.Internal/QuickInfo/ExportQuickInfoProviderAttribute.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 2 | 3 | using System; 4 | using System.Composition; 5 | 6 | namespace dnSpy.Roslyn.Internal.QuickInfo 7 | { 8 | [MetadataAttribute] 9 | [AttributeUsage(AttributeTargets.Class)] 10 | internal class ExportQuickInfoProviderAttribute : ExportAttribute 11 | { 12 | public string Name { get; } 13 | public string Language { get; } 14 | 15 | public ExportQuickInfoProviderAttribute(string name, string language) 16 | : base(typeof(IQuickInfoProvider)) 17 | { 18 | if (name == null) 19 | { 20 | throw new ArgumentNullException(nameof(name)); 21 | } 22 | 23 | if (language == null) 24 | { 25 | throw new ArgumentNullException(nameof(language)); 26 | } 27 | 28 | this.Name = name; 29 | this.Language = language; 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/Hex/HexEditor/AppSettingsPageContainer.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Contracts.Settings.Dialog; 21 | 22 | namespace dnSpy.Hex.HexEditor { 23 | [ExportAppSettingsPageContainer("res:HexEditorSettings", AppSettingsConstants.GUID_HEX_EDITOR, AppSettingsConstants.ORDER_HEXEDITOR)] 24 | sealed class AppSettingsPageContainer : IAppSettingsPageContainer { } 25 | } 26 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/Output/Settings/AppSettingsPageContainer.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Contracts.Settings.Dialog; 21 | 22 | namespace dnSpy.Output.Settings { 23 | [ExportAppSettingsPageContainer("res:OutputWindowSettings", AppSettingsConstants.GUID_OUTPUT, AppSettingsConstants.ORDER_OUTPUT)] 24 | sealed class AppSettingsPageContainer : IAppSettingsPageContainer { } 25 | } 26 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/Compiler/EditCodeCommandConstants.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using System; 21 | 22 | namespace dnSpy.AsmEditor.Compiler { 23 | static class EditCodeCommandConstants { 24 | /// 25 | /// Edit code command IDs 26 | /// 27 | public static readonly Guid EditCodeGroup = new Guid("CAE84AD6-F8E2-4CB7-984E-09CB831CB92B"); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/DnlibDialogs/Null.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.AsmEditor.DnlibDialogs { 21 | abstract class Null { 22 | } 23 | 24 | sealed class Null : Null { 25 | public static readonly Null Instance = new Null(); 26 | 27 | Null() { 28 | } 29 | 30 | public override string ToString() => string.Format("({0})null", typeof(T)); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Contracts.DnSpy/Command/OutputTextPaneIds.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Contracts.Output; 21 | 22 | namespace dnSpy.Contracts.Command { 23 | /// 24 | /// command IDs 25 | /// 26 | public enum OutputTextPaneIds { 27 | /// 28 | /// Clears all text 29 | /// 30 | ClearAll, 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Contracts.DnSpy/Text/Editor/IDsTextView.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Contracts.Command; 21 | using Microsoft.VisualStudio.Text.Editor; 22 | 23 | namespace dnSpy.Contracts.Text.Editor { 24 | /// 25 | /// dnSpy 26 | /// 27 | public interface IDsTextView : ITextView, ICommandTargetCollectionProvider { 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/Text/CodeEditor/AppSettingsPageContainer.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Contracts.Settings.Dialog; 21 | 22 | namespace dnSpy.Text.CodeEditor { 23 | [ExportAppSettingsPageContainer("res:CodeEditorSettings", AppSettingsConstants.GUID_CODE_EDITOR, AppSettingsConstants.ORDER_CODE_EDITOR)] 24 | sealed class AppSettingsPageContainer : IAppSettingsPageContainer { } 25 | } 26 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/ViewHelpers/ISelectItems.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using System.Collections.Generic; 21 | 22 | namespace dnSpy.AsmEditor.ViewHelpers { 23 | interface ISelectItems { 24 | /// 25 | /// Select the items 26 | /// 27 | /// Items in collection to select 28 | void Select(IEnumerable items); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Contracts.DnSpy/TreeView/IMDTokenNode.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnlib.DotNet; 21 | 22 | namespace dnSpy.Contracts.TreeView { 23 | /// 24 | /// Holds a reference with a token 25 | /// 26 | public interface IMDTokenNode { 27 | /// 28 | /// Gets the reference 29 | /// 30 | IMDTokenProvider Reference { get; } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Contracts.DnSpy/Hex/Editor/HexGlyphTag.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Contracts.Hex.Tagging; 21 | 22 | namespace dnSpy.Contracts.Hex.Editor { 23 | /// 24 | /// A glyph margin tag 25 | /// 26 | public abstract class HexGlyphTag : HexTag { 27 | /// 28 | /// Constructor 29 | /// 30 | protected HexGlyphTag() { } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Contracts.DnSpy/Scripting/Debugger/IEventBreakpoint.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.Contracts.Scripting.Debugger { 21 | /// 22 | /// Debug event breakpoint 23 | /// 24 | public interface IEventBreakpoint : IBreakpoint { 25 | /// 26 | /// Gets the event kind 27 | /// 28 | DebugEventKind EventKind { get; } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Contracts.DnSpy/Text/Classification/ITextClassifierAggregator.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using System; 21 | 22 | namespace dnSpy.Contracts.Text.Classification { 23 | /// 24 | /// Text classifier aggregator, see 25 | /// 26 | public interface ITextClassifierAggregator : ITextClassifier, IDisposable { 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Roslyn.Shared/Intellisense/QuickInfo/InformationQuickInfoContentControl.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using System.Windows.Controls; 21 | 22 | namespace dnSpy.Roslyn.Shared.Intellisense.QuickInfo { 23 | sealed partial class InformationQuickInfoContentControl : UserControl { 24 | public InformationQuickInfoContentControl() { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/Text/Formatting/ITextParagraphPropertiesFactoryServiceSelector.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using Microsoft.VisualStudio.Text.Formatting; 21 | using Microsoft.VisualStudio.Utilities; 22 | 23 | namespace dnSpy.Text.Formatting { 24 | interface ITextParagraphPropertiesFactoryServiceSelector { 25 | ITextParagraphPropertiesFactoryService Select(IContentType contentType); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/ViewHelpers/IOpenFile.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.AsmEditor.ViewHelpers { 21 | interface IOpenFile { 22 | /// 23 | /// Opens a file and returns its contents or null if user cancelled 24 | /// 25 | /// Filename filter 26 | /// 27 | byte[] Open(string filter = null); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/Decompiler/DecompilerAppSettingsPageContainer.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Contracts.Settings.Dialog; 21 | 22 | namespace dnSpy.Decompiler { 23 | [ExportAppSettingsPageContainer("res:DecompilerDlgTabTitle", AppSettingsConstants.GUID_DECOMPILER, AppSettingsConstants.ORDER_DECOMPILER)] 24 | sealed class DecompilerAppSettingsPageContainer : IAppSettingsPageContainer { } 25 | } 26 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Contracts.DnSpy/Documents/TreeView/ResourcesFolderNode.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.Contracts.Documents.TreeView { 21 | /// 22 | /// Resources node 23 | /// 24 | public abstract class ResourcesFolderNode : DocumentTreeNodeData { 25 | /// 26 | /// Constructor 27 | /// 28 | protected ResourcesFolderNode() { 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Contracts.DnSpy/Hex/Intellisense/IHexCustomIntellisensePresenter.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.Contracts.Hex.Intellisense { 21 | /// 22 | /// Custom 23 | /// 24 | public interface IHexCustomIntellisensePresenter { 25 | /// 26 | /// Renders the UI 27 | /// 28 | void Render(); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Contracts.DnSpy/TreeView/TreeViewConstants.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.Contracts.TreeView { 21 | /// 22 | /// Treeview constants 23 | /// 24 | public static class TreeViewConstants { 25 | /// Guid of documents treeview 26 | public static readonly string DOCUMENT_TREEVIEW_GUID = "47F487E1-64D1-4D63-87C6-B4C4F89461A3"; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/Settings/Dialog/UIHelpers.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.Settings.Dialog { 21 | static class UIHelpers { 22 | public static string RemoveAccessKeys(string s) { 23 | if (s.IndexOf('_') < 0) 24 | return s; 25 | const string UNDERSCORE_TMP = "<<<<<<>>>>>>"; 26 | return s.Replace("__", UNDERSCORE_TMP).Replace("_", "").Replace(UNDERSCORE_TMP, "_"); 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Contracts.DnSpy/Tabs/ITabServiceProvider.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.Contracts.Tabs { 21 | /// 22 | /// Creates s 23 | /// 24 | interface ITabServiceProvider { 25 | /// 26 | /// Creates a new instance 27 | /// 28 | /// 29 | ITabService Create(); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/MainApp/Settings/EnvironmentAppSettingsPageContainer.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Contracts.Settings.Dialog; 21 | 22 | namespace dnSpy.MainApp.Settings { 23 | [ExportAppSettingsPageContainer("res:EnvironmentSettings", AppSettingsConstants.GUID_ENVIRONMENT, AppSettingsConstants.ORDER_ENVIRONMENT)] 24 | sealed class EnvironmentAppSettingsPageContainer : IAppSettingsPageContainer { } 25 | } 26 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/Settings/Fonts/DefaultFontInfo.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using System.Windows.Media; 21 | 22 | namespace dnSpy.Settings.Fonts { 23 | struct DefaultFontInfo { 24 | public FontFamily FontFamily { get; } 25 | public double FontSize { get; } 26 | public DefaultFontInfo(FontFamily fontFamily, double fontSize) { 27 | FontFamily = fontFamily; 28 | FontSize = fontSize; 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/UndoRedo/IUndoableDocumentsProvider.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using System.Collections.Generic; 21 | 22 | namespace dnSpy.AsmEditor.UndoRedo { 23 | interface IUndoableDocumentsProvider { 24 | IEnumerable GetObjects(); 25 | IUndoObject GetUndoObject(object obj); 26 | bool OnExecutedOneCommand(IUndoObject obj); 27 | object GetDocument(IUndoObject obj); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Extensions/dnSpy.Scripting.Roslyn/Common/ScriptControl.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using System.Windows.Controls; 21 | 22 | namespace dnSpy.Scripting.Roslyn.Common { 23 | sealed partial class ScriptControl : UserControl { 24 | public ScriptControl() { 25 | InitializeComponent(); 26 | } 27 | 28 | public void SetTextEditorObject(object obj) => textEditorContentPresenter.Content = obj; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Contracts.DnSpy/Settings/HexGroups/PredefinedHexViewGroupNames.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.Contracts.Settings.HexGroups { 21 | /// 22 | /// Hex view group names 23 | /// 24 | public static class PredefinedHexViewGroupNames { 25 | /// 26 | /// Hex editor group 27 | /// 28 | public const string HexEditor = nameof(HexEditor); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Roslyn.Internal/SmartIndent/Helpers.cs: -------------------------------------------------------------------------------- 1 | //TODO: Remove GetOptionsAsync() whenever roslyn gets upgraded to a later version (beta4 perhaps?) 2 | 3 | using System.Threading; 4 | using System.Threading.Tasks; 5 | using Microsoft.CodeAnalysis; 6 | using Microsoft.CodeAnalysis.Options; 7 | 8 | namespace dnSpy.Roslyn.Internal.SmartIndent { 9 | static class Helpers { 10 | /// 11 | /// Returns the options that should be applied to this document. This consists of global options from , 12 | /// merged with any settings the user has specified at the solution, project, and document levels. 13 | /// 14 | /// 15 | /// This method is async because this may require reading other files. It is expected this is cheap and synchronous in most cases due to caching. 16 | public static Task GetOptionsAsync(this Document document, CancellationToken cancellationToken = default(CancellationToken)) { 17 | // TODO: merge with document-specific options 18 | return Task.FromResult(new DocumentOptionSet(document.Project.Solution.Options, document.Project.Language)); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/Text/Editor/ReplSubBuffer.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using Microsoft.VisualStudio.Text; 21 | 22 | namespace dnSpy.Text.Editor { 23 | sealed class ReplSubBuffer { 24 | public ReplBufferKind Kind { get; } 25 | public Span Span { get; } 26 | 27 | public ReplSubBuffer(ReplBufferKind kind, int start, int end) { 28 | Kind = kind; 29 | Span = Span.FromBounds(start, end); 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Roslyn.EditorFeatures/SmartIndent/SmartIndentProvider.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 2 | 3 | using System; 4 | using System.ComponentModel.Composition; 5 | using dnSpy.Roslyn.EditorFeatures.Editor; 6 | using Microsoft.VisualStudio.Text.Editor; 7 | using Microsoft.VisualStudio.Utilities; 8 | 9 | namespace dnSpy.Roslyn.EditorFeatures.SmartIndent 10 | { 11 | [Export(typeof(ISmartIndentProvider))] 12 | [ContentType(ContentTypeNames.RoslynContentType)] 13 | internal class SmartIndentProvider : ISmartIndentProvider 14 | { 15 | public ISmartIndent CreateSmartIndent(ITextView textView) 16 | { 17 | if (textView == null) 18 | { 19 | throw new ArgumentNullException(nameof(textView)); 20 | } 21 | 22 | //if (!textView.TextBuffer.GetFeatureOnOffOption(InternalFeatureOnOffOptions.SmartIndenter)) 23 | //{ 24 | // return null; 25 | //} 26 | 27 | return new SmartIndent(textView); 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Roslyn.VisualBasic.Internal/My Project/AssemblyInfo.vb: -------------------------------------------------------------------------------- 1 | Imports System.Reflection 2 | Imports System.Resources 3 | Imports System.Runtime.CompilerServices 4 | Imports System.Runtime.InteropServices 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /Extensions/dnSpy.Debugger/dnSpy.Debugger/Exceptions/ExceptionControl.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using System.Windows.Controls; 21 | 22 | namespace dnSpy.Debugger.Exceptions { 23 | sealed partial class ExceptionsControl : UserControl { 24 | public ListBox ListBox => listBox; 25 | public TextBox SearchTextBox => searchTextBox; 26 | 27 | public ExceptionsControl() { 28 | InitializeComponent(); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Contracts.DnSpy/Documents/TreeView/DerivedTypesFolderNode.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.Contracts.Documents.TreeView { 21 | /// 22 | /// Contains all derived types 23 | /// 24 | public abstract class DerivedTypesFolderNode : DocumentTreeNodeData { 25 | /// 26 | /// Constructor 27 | /// 28 | protected DerivedTypesFolderNode() { 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Contracts.DnSpy/TreeView/ITreeNodeGroup.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using System.Collections.Generic; 21 | 22 | namespace dnSpy.Contracts.TreeView { 23 | /// 24 | /// Tree node group 25 | /// 26 | public interface ITreeNodeGroup : IComparer { 27 | /// 28 | /// Order of group relative to other groups 29 | /// 30 | double Order { get; } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /dnSpy/dnSpy/Documents/Tabs/DocViewer/Settings/AppSettingsPageContainer.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnSpy.Contracts.Settings.Dialog; 21 | 22 | namespace dnSpy.Documents.Tabs.DocViewer.Settings { 23 | [ExportAppSettingsPageContainer("res:TextViewerSettings", AppSettingsConstants.GUID_DOCUMENT_VIEWER, AppSettingsConstants.ORDER_DOCUMENT_VIEWER)] 24 | sealed class AppSettingsPageContainer : IAppSettingsPageContainer { } 25 | } 26 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/MethodBody/IEditOperand.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.AsmEditor.MethodBody { 21 | interface IEditOperand { 22 | /// 23 | /// Edit the operand 24 | /// 25 | /// Parameter passed from the button command 26 | /// Operand to edit 27 | void Edit(object parameter, InstructionOperandVM operand); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Contracts.DnSpy/Hex/Files/DotNet/TablesHeapType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.Contracts.Hex.Files.DotNet { 21 | /// 22 | /// Metadata tables type 23 | /// 24 | public enum TablesHeapType { 25 | /// 26 | /// Compressed (#~) 27 | /// 28 | Compressed, 29 | 30 | /// 31 | /// Edit n' Continue (#-) 32 | /// 33 | ENC, 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Contracts.DnSpy/Menus/IContextMenuProvider.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using System.Windows; 21 | 22 | namespace dnSpy.Contracts.Menus { 23 | /// 24 | /// Shows context menus 25 | /// 26 | public interface IContextMenuProvider { 27 | /// 28 | /// Shows the context menu 29 | /// 30 | /// Element 31 | void Show(FrameworkElement elem); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Contracts.DnSpy/Text/Editor/PredefinedDsMarginNames.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.Contracts.Text.Editor { 21 | /// 22 | /// Predefined dnSpy margin names 23 | /// 24 | public static class PredefinedDsMarginNames { 25 | /// 26 | /// Custom line number margin 27 | /// 28 | public const string CustomLineNumber = "dnSpy-" + nameof(CustomLineNumber); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Contracts.DnSpy/TreeView/TreeViewListenerEvent.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.Contracts.TreeView { 21 | /// 22 | /// event 23 | /// 24 | public enum TreeViewListenerEvent { 25 | /// 26 | /// A new node was created. is a 27 | /// 28 | NodeCreated, 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Decompiler/MSBuild/IMSBuildProjectWriterLogger.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.Decompiler.MSBuild { 21 | /// 22 | /// Logs errors 23 | /// 24 | interface IMSBuildProjectWriterLogger { 25 | /// 26 | /// Logs an error. This method can be called from any thread 27 | /// 28 | /// Message 29 | void Error(string message); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/ViewHelpers/IEdit.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | namespace dnSpy.AsmEditor.ViewHelpers { 21 | interface IEdit { 22 | /// 23 | /// Lets the user edit the object. Returns null if user canceled. 24 | /// 25 | /// Window UI title 26 | /// The object to edit 27 | /// 28 | T Edit(string title, T obj); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Extensions/dnSpy.Debugger/dnSpy.Debugger/DnModuleIdExtensions.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dndbg.Engine; 21 | using dnSpy.Contracts.Metadata; 22 | 23 | namespace dnSpy.Debugger { 24 | static class DnModuleIdExtensions { 25 | public static ModuleId ToModuleId(this DnModuleId moduleId) => 26 | new ModuleId(moduleId.AssemblyFullName, moduleId.ModuleName, moduleId.IsDynamic, moduleId.IsInMemory, moduleId.ModuleNameOnly); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Extensions/dnSpy.Debugger/dnSpy.Debugger/ModuleIdExtensions.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dndbg.Engine; 21 | using dnSpy.Contracts.Metadata; 22 | 23 | namespace dnSpy.Debugger { 24 | static class ModuleIdExtensions { 25 | public static DnModuleId ToDnModuleId(this ModuleId moduleId) => 26 | new DnModuleId(moduleId.AssemblyFullName, moduleId.ModuleName, moduleId.IsDynamic, moduleId.IsInMemory, moduleId.ModuleNameOnly); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Extensions/dnSpy.Debugger/dndbg/Engine/CorDebugExtensions.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using System.Collections.Generic; 21 | using System.Linq; 22 | 23 | namespace dndbg.Engine { 24 | public static class CorDebugExtensions { 25 | public static T[] ToCorDebugArray(this IEnumerable> objs) where T : class { 26 | if (objs == null) 27 | return null; 28 | return objs.Select(o => o.RawObject).ToArray(); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Contracts.DnSpy/Scripting/Debugger/DebuggerEventArgs.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using System; 21 | 22 | namespace dnSpy.Contracts.Scripting.Debugger { 23 | /// 24 | /// Debugger event args 25 | /// 26 | public class DebuggerEventArgs : EventArgs { 27 | /// 28 | /// Empty instance 29 | /// 30 | public new static readonly DebuggerEventArgs Empty = new DebuggerEventArgs(); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /dnSpy/dnSpy.Contracts.DnSpy/ToolBars/IToolBarItemContext.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using System; 21 | 22 | namespace dnSpy.Contracts.ToolBars { 23 | /// 24 | /// context 25 | /// 26 | public interface IToolBarItemContext { 27 | /// 28 | /// Gets the guid of the toolbar, eg. 29 | /// 30 | Guid ToolBarGuid { get; } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Extensions/dnSpy.AsmEditor/ViewHelpers/IOpenPublicKeyFile.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014-2016 de4dot@gmail.com 3 | 4 | This file is part of dnSpy 5 | 6 | dnSpy is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | dnSpy is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with dnSpy. If not, see . 18 | */ 19 | 20 | using dnlib.DotNet; 21 | 22 | namespace dnSpy.AsmEditor.ViewHelpers { 23 | interface IOpenPublicKeyFile { 24 | /// 25 | /// Lets the user pick a public key file to open and returns it to the caller. Returns null 26 | /// if the user didn't open a public key file. 27 | /// 28 | /// 29 | PublicKey Open(); 30 | } 31 | } 32 | --------------------------------------------------------------------------------