using System; using Spectre.Console.Rendering; namespace Spectre.Console { /// /// Contains extension methods for . /// public static partial class AnsiConsoleExtensions { /// /// Renders the specified object to the console. /// /// The console to render to. /// The object to render. [Obsolete("Consider using IAnsiConsole.Write instead.")] public static void Render(this IAnsiConsole console, IRenderable renderable) { if (console is null) { throw new ArgumentNullException(nameof(console)); } if (renderable is null) { throw new ArgumentNullException(nameof(renderable)); } console.Write(renderable); } } }