Use file scoped namespace declarations

This commit is contained in:
Patrik Svensson
2021-12-21 11:06:46 +01:00
committed by Phil Scott
parent 1dbaf50935
commit ec1188b837
607 changed files with 28739 additions and 29245 deletions

View File

@@ -1,37 +1,36 @@
using System.IO;
using System.Text;
namespace Spectre.Console
namespace Spectre.Console;
/// <summary>
/// Represents console output.
/// </summary>
public interface IAnsiConsoleOutput
{
/// <summary>
/// Represents console output.
/// Gets the <see cref="TextWriter"/> used to write to the output.
/// </summary>
public interface IAnsiConsoleOutput
{
/// <summary>
/// Gets the <see cref="TextWriter"/> used to write to the output.
/// </summary>
TextWriter Writer { get; }
TextWriter Writer { get; }
/// <summary>
/// Gets a value indicating whether or not the output is a terminal.
/// </summary>
bool IsTerminal { get; }
/// <summary>
/// Gets a value indicating whether or not the output is a terminal.
/// </summary>
bool IsTerminal { get; }
/// <summary>
/// Gets the output width.
/// </summary>
int Width { get; }
/// <summary>
/// Gets the output width.
/// </summary>
int Width { get; }
/// <summary>
/// Gets the output height.
/// </summary>
int Height { get; }
/// <summary>
/// Gets the output height.
/// </summary>
int Height { get; }
/// <summary>
/// Sets the output encoding.
/// </summary>
/// <param name="encoding">The encoding.</param>
void SetEncoding(Encoding encoding);
}
}
/// <summary>
/// Sets the output encoding.
/// </summary>
/// <param name="encoding">The encoding.</param>
void SetEncoding(Encoding encoding);
}