/* Copyright (C) 2014-2019 de4dot@gmail.com This file is part of dnSpy dnSpy is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. dnSpy is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with dnSpy. If not, see . */ using System; namespace dnSpy.Contracts.Disassembly.Viewer { /// /// Creates the text shown in the disassembly window and notifies listeners when the text is changed. /// Created by /// public abstract class DisassemblyContentProvider { /// /// Gets the title or null. This can be shown in the UI /// public virtual string? Title => null; /// /// Gets a few lines that can be shown in a UI tooltip or null to not show anything /// public virtual string? Description => null; /// /// Raised when the content is changed /// public abstract event EventHandler? OnContentChanged; /// /// Gets the content /// /// public abstract DisassemblyContent GetContent(); /// /// Called when it's no longer used by a view /// public abstract void Dispose(); /// /// Clones this instance so it can be shown in a new tab /// /// public abstract DisassemblyContentProvider Clone(); } }